Question: how did the byzantine empire last so long?
Answer: Long answer: Because it had a healthy foundation on economy, societal order, religion, army and administration. The Byzantine Empire got all the vices of the Roman Empire corrected - and the Byzantine Empire was everything what the Roman Empire should have been.