How to generate unique ids in a distributed system. Why are unique ids important in distributed systems? Let's try to understand this with a real example. In twitter, millions of tweets are generated everyday and to handle these tweets, there are tho...