design - How to maintain follow list like in Instagram? -


i trying make network similar instagram / facebook principle; i.e. there many users , might connected 1 in uni-directional way. graph.

a simple , naive approach create directory each user , have json file listing other users user follows.

how performance of graph databases , 1 better start( bascically, user friendly installation , not many .conf changes).

please, suggest in case there better design. thanks

a graph database storing , traversing entities , relationships have 1 another. in sense think looking use of graph database use of time. recommend starting with tinkerpop:

http://tinkerpop.com

which offers jdbc-like connectivity many graph database providers. in way can try out many different graph databases through common interface find 1 right needs. offers way started little setup , configuration via gremlin (a graph traversal language). can see how started here through repl , tinkergraph (a simple in-memory graph):

https://github.com/tinkerpop/gremlin/wiki/getting-started

from there, want different blueprints supported graph databases (e.g. titan, orientdb, neo4j name few) find right 1 needs.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -