educative.io

Educative

TimsStamp+UID Doubts

How would timestamp store the problem.Does adding time stamp is guaranteed that i can take top 100 records?Since one user data is on multiple servers,I may get results from different servers and these servers time stamp most probably not match exactly,it may have 2-3 ms +/- for same time.So how you know which is latest or not?Even if all time stamps are same,all shards are having their unique counter,looking at this counter value we cannot see which is latest.May be one is having 10 and other is 100, but that does not mean that 100 is new or old

would you really care if you see a photo posted @ 10AM above the photo posted @ 10.01AM?