Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Social Networking backend architecture

Tags:

database

Ideally, where would an application like Facebook store its "Friends" data? In a database table? in an xml file?

like image 677
Csharp Avatar asked Oct 16 '25 11:10

Csharp


2 Answers

From Facebooks engineering page:

"Already, we are the second most-trafficked PHP site in the world (Yahoo is #1), and one of the largest MySQL installations anywhere, running thousands of databases."

and

"We've built a lightweight but powerful multi-language RPC framework that allows us to seamlessly and easily tie together subsystems written in any language, running on any platform. Facebook is built in PHP, C++, Perl, Python, Erlang, Java, and even a little bit of ML—and it all works together. * We are the largest user in the world of memcached, an open-source caching system. Originally developed by LiveJournal, we've since made so many scalability improvements and performance upgrades that we will be the primary contributor of features in the next major release. * We've created a custom-built search engine serving millions of queries a day, completely distributed and entirely in-memory, with real-time updates."

like image 132
NotMe Avatar answered Oct 18 '25 10:10

NotMe


check out this blog: http://highscalability.com/ many real-world examples of systems architecures to learn from

like image 35
CountZero Avatar answered Oct 18 '25 11:10

CountZero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!