Microservices In Practice: Developing Instagram Clone —Graph Service
Published in
4 min readJun 17, 2020
This is part 6 of Developing Instagram Clone series, other parts are linked below
- Developing Instagram Clone: Introduction.
- Developing Instagram Clone: Discovery Service.
- Developing Instagram Clone: Auth Service.
- Developing Instagram Clone: Media Service.
- Developing Instagram Clone: Post Service.
- Developing Instagram Clone: Graph Service.
- Developing Instagram Clone: Newsfeed Service.
- Developing Instagram Clone: Gateway Service.
- Developing Instagram Clone: Front-end Service
In this service we are trying to build a follow system. Any user can follow any other user, and the user will see the posts from users who he/she are following on his/her news feed.
Before we go deep into the graph service itself, let’s first discuss the best data-structure to represent this relationship and the database that we are going to use.
Graph data-structure
One might think why not saving a list of followers for each user in MongoDB or MySQL.