Feature #2: Copy Connections
Implementing the "Copy Connections" feature for our "Facebook" project.
We'll cover the following
Description
After identifying every user’s friend circle, we need to duplicate this data to Instagram’s servers so it can be easily accessed and modified there as well. As the user’s name can be the same, so every user on Facebook gets assigned a unique id. Each Facebook user’s connections are represented and stored in a graph-like structure. We will first have to make an exact copy of this structure before storing it on Instagram’s servers.
Let’s say we want to duplicate the data for the following users:
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.