# Understanding the Concept of Virtual Time Using the Time Warp Algorithm

DevFeed: [Understanding the Concept of Virtual Time Using the Time Warp Algorithm](<https://devfeed.tech/articles/understanding-the-concept-of-virtual-time-using-the-time-warp-algorithm-39617.md>)

Original publisher: [Read original article](<https://www.gauravsarma.com/posts/2021-04-10_Understanding-the-Concept-of-Virtual-Time-Using-the-Time-Warp-Algorithm-4579dfe5eca8>)

Published: 2021-04-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Gaurav Sarma's Blog](<https://devfeed.tech/sources/gaurav-sarma-s-blog.md>)

Topics: [Warp](<https://devfeed.tech/topics/warp.md>), [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [Algorithm](<https://devfeed.tech/topics/algorithm.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [rollback](<https://devfeed.tech/tags/rollback.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>), [warp](<https://devfeed.tech/tags/warp.md>)

## AI overview

This tutorial explains virtual time in distributed systems and focuses on the lookahead-rollback approach used by the Time Warp algorithm. It describes virtual clocks, message timestamps, event ordering, causality, and how Time Warp relates to Lamport's logical clock.

## Source excerpt

What is virtual time and why do we need it. As distributed systems have progressed and been adopted over the last decade, there have been numerous technologies in different segments like databases, caches, message queues, etc which are built on top of other frameworks which abstract away the difficulty of managing distributed systems...