DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • TAO: A Comprehensive Look at Facebook's Distributed Data Store
  • What Is React? A Complete Guide
  • React, Angular, and Vue.js: What’s the Technical Difference?
  • Top 5 Incidents and Outages of 2021

Trending

  • How to Migrate From LangChainGo to Genkit Go
  • Searching Kafka Without an Index: Lessons From Building Message Search for Kafdrop
  • SSRF Prevention in C#: Securing File Imports From User-Supplied URLs
  • Beyond the Endpoint: How Agent Cards Enable Discovery, Interoperability, and Trust

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

How Facebook Does Deployment

By 
Mitch Pronschinske
·
Apr. 06, 12 · Interview
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
35.8K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in
Some interesting insider info was released this week about the Facebook deployment process.  I've compiled a TL;DR version here in case you don't want to read the whole piece, but I recommend you do.  The information comes straight from Chuck Rossi, the head of Facebook's release engineering team, who was interviewed by Ars Technica's Ryan Paul:

An important aspect of Facebook's development culture is the idea that developers are fully responsible for how their code behaves in production. This philosophy mirrors the "DevOps" movement, which encourages lowering the wall between software development and IT operations.

If any of the code in a Facebook update causes problems in production, the developer who wrote it is on the hook for making sure that the issue gets resolved as quickly as possible.

--Ryan Paul, Ars Technica "Exclusive: a behind-the-scenes look at Facebook release engineering"

I think we've got more evidence here that "DevOps" is just a name for what many super-successful companies have already been doing.  On to the TL;DR!

For deployment Facebook uses


  • Uses custom BitTorrent P2P system
  • Site updates take 15-30 minutes
  • JS, CSS, and Graphics are hosted on distributed CDNs

Deployment steps


  1. Update goes to an "a2"  tier which rolls update out to a small, random collection of users.
  2. Check-in procedure on company IRC where all developers who submitted code for the update have confirm that they are ready to respond if there is a problem when the update goes out.
  3. Head of release engineering issues command in terminal to begin deployment
  4. Watch web-based monitoring dashboards as the update rolls out.

A small amount of servers will fail during most deployments, but it usually doesn't cause any issues.  That's because any of Facebook's servers can handle any sort of page request, so they don't have to worry about serialization and migration of user session states.  The servers can keep handling incoming page requests during their software updates.  No-downtime, as we all know.

Frequency of deployments:


  • One minor update on most business days
  • One major update on a weekly basis, usually Tuesdays

"Release early and often."  The mantra rings true at Google, Facebook, and many other companies that we look up to as the best in the business.

Make sure you check out the whole article for the full story on Facebook's release engineering.
facebook

Opinions expressed by DZone contributors are their own.

Related

  • TAO: A Comprehensive Look at Facebook's Distributed Data Store
  • What Is React? A Complete Guide
  • React, Angular, and Vue.js: What’s the Technical Difference?
  • Top 5 Incidents and Outages of 2021

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook