Twitter like Model using SQL Server/Azure or Graph DB

落爺英雄遲暮 提交于 2019-12-12 02:59:19

问题


Is it possible to design a twitter like DB using SQL server? a DB that will ensure high scalability and fast queries.

I am building a .NET platform that requires a similar model like twitter (User, Follower, Tweet) and looking into what will fit best in terms of fast queries and scalability.

Will it be possible using a relational DB or is a graph db much better?


回答1:


SQL Server will most certainly be able to handle any load that you have. SQL Azure supports databases up to 150GB (though I hear you can get more if you ask). With Azure SQL Federation, you can scale out multiple databases on hundreds of nodes around the world.

As for a relational database like SQL Server, or the "NoSQL" variants like Azure Table Storage, it depends on your needs and how structured your data is. Given you'll probably do a lot of joins, querying for followers of users, tweets that someone should see, etc. you're best bet is to go with a relational db. Even Facebook still uses MySQL, so you're not exactly in bad company with using a relational db.



来源:https://stackoverflow.com/questions/9729082/twitter-like-model-using-sql-server-azure-or-graph-db

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!