SlideShare a Scribd company logo
1 of 15
TECHNOLOGIES BEHIND THE FACEBOOK
WHAT IS FACEBOOK ?
Facebook is a social networking website that was founded in February 2004 by Harvard university .
The idea behind Facebook was to provide an online book of faces for university students to connect and
share information.
It was initially a social network for Harvard and expanded in the following years to any university.
It eventually became a social network for anyone, anywhere in the world.
TYPES OF FACE BOOK TECHNOLOGIES
Memcached
HipHop for PHP and HipHop Virtual Machine (HHVM)
Haystack
Big Pipe
Cassandra (Instagram)
Scribe
Hadoop and Hive
Thrift
Varnish
React
MEMCACHED
Memcached is by now one of the most famous pieces of software on the internet.
 It’s a distributed memory caching system which Facebook use as a caching layer between the web
servers and MySQL servers .
 Through the years, Facebook has made a ton of optimizations to Memcached and the surrounding
software .
 Facebook runs thousands of Memcached servers with tens of terabytes of cached data at any one point in
time. It is likely the world’s largest Memcached installation.
PHP, being a scripting language, is relatively slow when compared to code that runs
natively on a server.
 HipHop converts PHP into C++ code which can then be compiled for better performance.
 This has allowed Facebook to get much more out of its web servers since Facebook relies heavily on
PHP to serve content.
 A small team of engineers at Facebook spent 18 months developing HipHop, and it was used for a few
years.
 The project was discontinued back in 2013 and then replaced by HHVM (HipHop Virtual Machine).
HIP Hop for PHP and HipHop Virtual Machine (HHVM)
HAYSTACK
Haystack is Facebook’s high-performance photo storage/retrieval system .
It has a ton of work to do; there are more than 20 billion uploaded photos on Facebook, and each one is
saved in four different resolutions, resulting in more than 80 billion photos.
And it’s not just about being able to handle billions of photos; web performance is critical.
 As we mentioned previously, Facebook users upload around 147,000 photos every minute which makes it
2,450 photos per second
BIGPIPE
Big Pipe is a dynamic web page serving system that Facebook has developed. Facebook uses it to
serve each web page in sections for optimal performance.
For example, the chat window is retrieved separately, the news feed is retrieved separately, and so on.
 These pagelets can be retrieved in parallel, which is where the performance gain comes in, and it also
gives users a site that works even if some part of it would be deactivated or broken.
CASSANDRA
Cassandra is a distributed storage system with no single point of failure.
 It’s one of the poster children for the NoSQL movement and has been made open source .
Facebook used it for its Inbox search.
 Other than Facebook, a number of other services use it, for example Digg.
 Facebook abandoned Cassandra back in 2010 but the solution has been used at Instagram
since 2012 replacing Redis.
SCRIBE
It’s been built to be able to handle logging at the scale of Facebook, and automatically handles new logging
categories as they show up .
Scribe was a flexible logging system that Facebook used for a multitude of purposes internally.
 As of 2019, scribe’s GitHub repository states that this project is no longer supported or updated by
Facebook which probably means that it’s not in use anymore.
HADOOP
Hadoop is an open source map-reduce implementation that makes it possible to perform
calculations on massive amounts of data.
 Hive originated from within Facebook, and makes it possible to use SQL queries against Hadoop, making it
easier for non-programmers to use.
 Facebook uses this for data analysis.
 Both Hadoop and Hive are open source and are used by a number of big services, for example Yahoo and
Twitter.
THRIFT
Facebook uses several different languages for its different services.
PHP is used for the front-end, erlang is used for chat, java and C++ are also used in several places .
Thrift is an internally developed cross-language framework that ties all of these different languages together,
making it possible for them to talk to each other.
This has made it much easier for Facebook to keep up its cross-language development.
Facebook has made thrift open source and support for even more languages has been added.
VARNISH
Varnish is an HTTP accelerator which can act as a load balancer and also cache
content which can then be served lightning-fast.
 Facebook uses Varnish to serve photos and profile pictures, handling billions of requests every day.
 Like almost everything Facebook uses, Varnish is open source.
REACT
React is an open-source JavaScript library created in 2011 by Jordan Walke, a software engineer
at Facebook.
 Later, Facebook introduced React Fiber, which is a collection of algorithms for rendering graphics.
Interestingly, React is now one of the world’s most widely used JavaScript libraries. Read the story
of how React became so successful.
THANK YOU FOR YOUR
ATTENTION
TECHNOLOGIES BEHIND THE FACEBOOK.pptx

More Related Content

Similar to TECHNOLOGIES BEHIND THE FACEBOOK.pptx

Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1Thanh Nguyen
 
Facebook[The Nuts and Bolts Technology]
Facebook[The Nuts and Bolts Technology]Facebook[The Nuts and Bolts Technology]
Facebook[The Nuts and Bolts Technology]Koushik Reddy
 
Presention on Facebook in f Distributed systems
Presention on Facebook in f Distributed systemsPresention on Facebook in f Distributed systems
Presention on Facebook in f Distributed systemsAhmad Yar
 
Facebook Hadoop Usecase
Facebook Hadoop UsecaseFacebook Hadoop Usecase
Facebook Hadoop Usecasepuneet2k5
 
Shamit khemka describes why php rules the roost
Shamit khemka describes why php rules the roostShamit khemka describes why php rules the roost
Shamit khemka describes why php rules the roostSynapseIndia
 
Big Data Training in Mohali
Big Data Training in MohaliBig Data Training in Mohali
Big Data Training in MohaliE2MATRIX
 
Big Data Training in Ludhiana
Big Data Training in LudhianaBig Data Training in Ludhiana
Big Data Training in LudhianaE2MATRIX
 
Big Data Training in Amritsar
Big Data Training in AmritsarBig Data Training in Amritsar
Big Data Training in AmritsarE2MATRIX
 
Hadoop online training
Hadoop online training Hadoop online training
Hadoop online training Keylabs
 
2-19-14 “Integrating with DSpace 4” Presentation Slides
2-19-14 “Integrating with DSpace 4” Presentation Slides2-19-14 “Integrating with DSpace 4” Presentation Slides
2-19-14 “Integrating with DSpace 4” Presentation SlidesDuraSpace
 
Hadoop demo ppt
Hadoop demo pptHadoop demo ppt
Hadoop demo pptPhil Young
 
Hadoop foundation for analytics
Hadoop foundation for analyticsHadoop foundation for analytics
Hadoop foundation for analyticsHariniA7
 
Hadoop and its role in Facebook: An Overview
Hadoop and its role in Facebook: An OverviewHadoop and its role in Facebook: An Overview
Hadoop and its role in Facebook: An Overviewrahulmonikasharma
 
PHP Web Development.pdf
PHP Web Development.pdfPHP Web Development.pdf
PHP Web Development.pdfSonia Simi
 
Using WordPress as a Web Framework
Using WordPress as a Web FrameworkUsing WordPress as a Web Framework
Using WordPress as a Web FrameworkSylvain Carle
 

Similar to TECHNOLOGIES BEHIND THE FACEBOOK.pptx (20)

Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1
 
Facebook[The Nuts and Bolts Technology]
Facebook[The Nuts and Bolts Technology]Facebook[The Nuts and Bolts Technology]
Facebook[The Nuts and Bolts Technology]
 
Facebook thrift
Facebook thriftFacebook thrift
Facebook thrift
 
Presention on Facebook in f Distributed systems
Presention on Facebook in f Distributed systemsPresention on Facebook in f Distributed systems
Presention on Facebook in f Distributed systems
 
Facebook Hadoop Usecase
Facebook Hadoop UsecaseFacebook Hadoop Usecase
Facebook Hadoop Usecase
 
Shamit khemka describes why php rules the roost
Shamit khemka describes why php rules the roostShamit khemka describes why php rules the roost
Shamit khemka describes why php rules the roost
 
Big Data Training in Mohali
Big Data Training in MohaliBig Data Training in Mohali
Big Data Training in Mohali
 
Big Data Training in Ludhiana
Big Data Training in LudhianaBig Data Training in Ludhiana
Big Data Training in Ludhiana
 
Big Data Training in Amritsar
Big Data Training in AmritsarBig Data Training in Amritsar
Big Data Training in Amritsar
 
Hadoop online training
Hadoop online training Hadoop online training
Hadoop online training
 
2-19-14 “Integrating with DSpace 4” Presentation Slides
2-19-14 “Integrating with DSpace 4” Presentation Slides2-19-14 “Integrating with DSpace 4” Presentation Slides
2-19-14 “Integrating with DSpace 4” Presentation Slides
 
Drupal
DrupalDrupal
Drupal
 
Drupal
DrupalDrupal
Drupal
 
Hadoop demo ppt
Hadoop demo pptHadoop demo ppt
Hadoop demo ppt
 
Hadoop foundation for analytics
Hadoop foundation for analyticsHadoop foundation for analytics
Hadoop foundation for analytics
 
Hadoop and its role in Facebook: An Overview
Hadoop and its role in Facebook: An OverviewHadoop and its role in Facebook: An Overview
Hadoop and its role in Facebook: An Overview
 
Bigdata ppt
Bigdata pptBigdata ppt
Bigdata ppt
 
Bigdata
BigdataBigdata
Bigdata
 
PHP Web Development.pdf
PHP Web Development.pdfPHP Web Development.pdf
PHP Web Development.pdf
 
Using WordPress as a Web Framework
Using WordPress as a Web FrameworkUsing WordPress as a Web Framework
Using WordPress as a Web Framework
 

Recently uploaded

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Recently uploaded (20)

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 

TECHNOLOGIES BEHIND THE FACEBOOK.pptx

  • 2. WHAT IS FACEBOOK ? Facebook is a social networking website that was founded in February 2004 by Harvard university . The idea behind Facebook was to provide an online book of faces for university students to connect and share information. It was initially a social network for Harvard and expanded in the following years to any university. It eventually became a social network for anyone, anywhere in the world.
  • 3. TYPES OF FACE BOOK TECHNOLOGIES Memcached HipHop for PHP and HipHop Virtual Machine (HHVM) Haystack Big Pipe Cassandra (Instagram) Scribe Hadoop and Hive Thrift Varnish React
  • 4. MEMCACHED Memcached is by now one of the most famous pieces of software on the internet.  It’s a distributed memory caching system which Facebook use as a caching layer between the web servers and MySQL servers .  Through the years, Facebook has made a ton of optimizations to Memcached and the surrounding software .  Facebook runs thousands of Memcached servers with tens of terabytes of cached data at any one point in time. It is likely the world’s largest Memcached installation.
  • 5. PHP, being a scripting language, is relatively slow when compared to code that runs natively on a server.  HipHop converts PHP into C++ code which can then be compiled for better performance.  This has allowed Facebook to get much more out of its web servers since Facebook relies heavily on PHP to serve content.  A small team of engineers at Facebook spent 18 months developing HipHop, and it was used for a few years.  The project was discontinued back in 2013 and then replaced by HHVM (HipHop Virtual Machine). HIP Hop for PHP and HipHop Virtual Machine (HHVM)
  • 6. HAYSTACK Haystack is Facebook’s high-performance photo storage/retrieval system . It has a ton of work to do; there are more than 20 billion uploaded photos on Facebook, and each one is saved in four different resolutions, resulting in more than 80 billion photos. And it’s not just about being able to handle billions of photos; web performance is critical.  As we mentioned previously, Facebook users upload around 147,000 photos every minute which makes it 2,450 photos per second
  • 7. BIGPIPE Big Pipe is a dynamic web page serving system that Facebook has developed. Facebook uses it to serve each web page in sections for optimal performance. For example, the chat window is retrieved separately, the news feed is retrieved separately, and so on.  These pagelets can be retrieved in parallel, which is where the performance gain comes in, and it also gives users a site that works even if some part of it would be deactivated or broken.
  • 8. CASSANDRA Cassandra is a distributed storage system with no single point of failure.  It’s one of the poster children for the NoSQL movement and has been made open source . Facebook used it for its Inbox search.  Other than Facebook, a number of other services use it, for example Digg.  Facebook abandoned Cassandra back in 2010 but the solution has been used at Instagram since 2012 replacing Redis.
  • 9. SCRIBE It’s been built to be able to handle logging at the scale of Facebook, and automatically handles new logging categories as they show up . Scribe was a flexible logging system that Facebook used for a multitude of purposes internally.  As of 2019, scribe’s GitHub repository states that this project is no longer supported or updated by Facebook which probably means that it’s not in use anymore.
  • 10. HADOOP Hadoop is an open source map-reduce implementation that makes it possible to perform calculations on massive amounts of data.  Hive originated from within Facebook, and makes it possible to use SQL queries against Hadoop, making it easier for non-programmers to use.  Facebook uses this for data analysis.  Both Hadoop and Hive are open source and are used by a number of big services, for example Yahoo and Twitter.
  • 11. THRIFT Facebook uses several different languages for its different services. PHP is used for the front-end, erlang is used for chat, java and C++ are also used in several places . Thrift is an internally developed cross-language framework that ties all of these different languages together, making it possible for them to talk to each other. This has made it much easier for Facebook to keep up its cross-language development. Facebook has made thrift open source and support for even more languages has been added.
  • 12. VARNISH Varnish is an HTTP accelerator which can act as a load balancer and also cache content which can then be served lightning-fast.  Facebook uses Varnish to serve photos and profile pictures, handling billions of requests every day.  Like almost everything Facebook uses, Varnish is open source.
  • 13. REACT React is an open-source JavaScript library created in 2011 by Jordan Walke, a software engineer at Facebook.  Later, Facebook introduced React Fiber, which is a collection of algorithms for rendering graphics. Interestingly, React is now one of the world’s most widely used JavaScript libraries. Read the story of how React became so successful.
  • 14. THANK YOU FOR YOUR ATTENTION