Understanding Scalar and Vector Logical Clocks in Distributed Systems

In distributed systems, understanding the order of events is very important. But there is a problem.