How do you design Telegram's feature where you get a notification each time a contact of yours joins the service? what does it look like in terms of a scalable backend architecture?
Scenario: Two users, where both have a common contact, join Telegram. Then, that contact joins Telegram too, the system should then notify both users that their contact has joined Telegram.