Best way to store Follower-Following relation like Twitter in MongoDb?

What is best Practice to store Twitter like following-follower relationship in mongoDb by considering hight number of followers like 6-7 digits.

Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown 路 Publish articles on custom domain 路 Gain readership on day zero 路 Automatic GitHub backup and more

Comments (1)

Vishwa Bhat's photo

It completely depends on what and how you'd want to retrieve data from DB. Anyway, for your reference: Twitter Architecture