What is DevOps – Facebook’s UseCase | DevOps Tools

Recommended by 240 users

Oct 12, 2016
What is DevOps – Facebook’s UseCase | DevOps Tools
Add to Bookmark Email this Post 42.5K    9

The key to understanding what is DevOps lies in the intention of DevOps, that is to create superior-quality software, more quickly and with more reliability while causing greater communication and collaboration between teams. By teams, we refer to these two: Development team & IT Operations team.

In-fact, it is not the collaboration between these two teams which help deliver better software, but the oneness between ‘Dev’ & ‘Ops’ teams which results in improved software, delivered at a greater velocity. And let’s not forget the role played by DevOps tools for achieving automation. They rather sit at the foundation and help support the entire DevOps structure. 

The feeling of ‘oneness’, is caused by the bridging of skill-sets & practices between Developers and Operation Engineers, and the implementation of automation (DevOps) tools. Leading organizations across the world have adopted DevOps methodologies to overhaul their performance, security and team dynamics. With more and more companies jumping on to the DevOps bandwagon, it has emerged as a hot skill to master in 2016.

In this blog, let us find out what is DevOps and why is it such a big deal! We will do this by first tracing the evolution of software development methodologies leading to DevOps, then exploring what is DevOps and its life cycle, and finish up by evaluating how top companies such as Facebook are using DevOps to their benefit.

Evolution of Software Development

DevOps evolved from existing software development strategies/ methodologies over the years in response to business needs. Let us briefly look at how these models evolved and in which scenarios they would work best.

Software Development Models - What Is Devops

The slow and cumbersome Waterfall model evolved into Agile which saw development teams working on the software in short sprints lasting not more than two weeks. Having such a short release cycle helped the development team work on client feedback and incorporate it along with bug fixes in the next release. While this Agile SCRUM approach brought agility to development, it was lost on Operations which did not come up to speed with Agile practices. Lack of collaboration between Developers and Operations Engineers still slowed down the development process and releases. DevOps methodology was born out of this need for better collaboration and faster delivery. DevOps enables continuous software delivery with less complex problems to fix and faster resolution of problems.

Now that we have understood the evolution of DevOps, let us look at what is DevOps in detail.

What is DevOps?

DevOps is a software development approach which involves Continuous Development, Continuous Testing, Continuous Integration, Continuous Deployment and Continuous Monitoring of the software throughout its development life cycle. These activities are possible only in DevOps, not Agile or waterfall, and this is why Facebook and other top companies have chosen DevOps as the way forward for their business goals. DevOps is the preferred approach to develop high quality software in shorter development cycles which results in greater customer satisfaction. Check out the below video on What is DevOps before you go ahead. 

What is DevOps ? | DevOps Training – DevOps Introduction & Tools | DevOps Tutorial

Learn DevOps Now

Your understanding of what is DevOps is incomplete without learning about its life cycle. Let us now look at the DevOps life cycle and explore how they are related to the software development stages depicted in the diagram below.

Devops Cycle - What Is Devops

Continuous Development:

This is the stage in the DevOps life cycle where the Software is developed continuously. Unlike the Waterfall model, the software deliverables are broken down into multiple sprints of short development cycles, developed and then delivered in a very short time. This stage involves the Coding and Building phases and makes use of tools such as Git and SVN for maintaining the different versions of the code, and tools like Ant, Maven, Gradle for building/ packaging the code into an executable file that can be forwarded to the QAs for testing.

Continuous Testing:

This is the stage where the developed software is continuously tested for bugs. For Continuous testing, automation testing tools like Selenium, TestNG, JUnit, etc are used. These tools allow the QAs to test multiple code-bases thoroughly in parallel to ensure that there are no flaws in the functionality. In this phase, use of Docker containers for simulating ‘test environment’ on the fly, is also a preferred choice. Once the code is tested, it is continuously integrated with the existing code.

Continuous Integration:

This is the stage where the code supporting new functionality is integrated with the existing code. Since there is continuous development of software, the updated code needs to be integrated continuously as well as smoothly with the systems to reflect changes to the end users. The changed code, should also ensure that there are no errors in the runtime environment, allowing us to test the changes and check how it reacts with other changes.
Jenkins is a very popular tool used for Continuous Integration. Using Jenkins, one can pull the latest code revision from GIT repository and produce a build which can finally be deployed to test or production server. It can be set to trigger a new build automatically as soon as there is a change in the GIT repository or can be triggered manually on click of a button.

Continuous Deployment:

It is the stage where the code is deployed to the production environment. Here we ensure that the code is correctly deployed on all the servers. If there is any addition of functionality or a new feature is introduced then one should be ready to welcome greater website traffic. So it is also the responsibility of the SysAdmin to scale up the servers to host more users.
Since the new code is deployed on a continuous basis, configuration management tools play an important role for executing tasks quickly and frequently. Puppet, Chef, SaltStack and Ansible are some popular tools that are used in this stage.
Containerization tools also play an important role in the deployment stage. Docker and Vagrant are the popular tools which help produce consistency across Development, Test, Staging and Production environments. Besides this, they also help in scaling-up and scaling-down of instances easily.

Continuous Monitoring:

This is a very crucial stage in the DevOps life cycle which is aimed at improving the quality of the software by monitoring its performance. This practice involves the participation of the Operations team who will monitor the user activity for bugs / any improper behavior of the system. This can also be achieved by making use of dedicated monitoring tools which will continuously monitor the application performance and highlight issues.
Some popular tools used are Splunk, ELK StackNagios, NewRelic and Sensu. These tools help you monitor the application and the servers closely to check the health of the system proactively. They can also improve productivity and increase the reliability of the systems, reducing IT support costs. Any major issues found could be reported to the development team so that it can be fixed in the continuous development phase.

These DevOps stages are carried out on loop continuously until the desired product quality is achieved. The diagram given below will show you which tools can be used in which stage of the DevOps life cycle.

DevOps Tools - What Is DevOps?

Now that we have established the significance of DevOps and learnt about its different stages along with the DevOps tools involved, let us now look at a Facebook case study and understand why they moved from Agile to DevOps. We will do this by taking up the use case of Facebook’s 2011 roll-out of new features that resulted in them reassessing their product delivery and taking on the DevOps approach. But before go through the below video on DevOps Tools. 

DevOps Tools | Automation using DevOps Tools | DevOps Training | DevOps Tutorial

Learn DevOps Tools Now

DevOps Case Study: Facebook

In 2011, Facebook rolled out a slew of new features – timeline, ticker and music functionalities – to its 500 million users spread across the globe. The huge traffic that was generated on Facebook following the release led to a server meltdown. The features that were rolled out garnered mixed response from users which led to inconclusive results of the effectiveness of the new features, leaving them with no actionable insights.

Facebook Case Study - What Is Devops

This led to an evaluation and reassessment of strategies, resulting in Facebook coming up with the Dark Launching Technique. Using the DevOps principles, Facebook created the following methodology for the launch of its new releases.

Dark Launching Methodology - What Is Devops

Facebook Dark Launching Technique

Dark launching is the process of gradually rolling out production-ready features to a select set of users before a full release. This allows development teams to get user feedback early on, test bugs, and also stress test infrastructure performance. A direct result of continuous delivery, this method of release helps in faster, more iterative releases that ensure that application performance does not get affected and that the release is well received by customers.

Facebook Dark Launch Process Using DevOps - What Is Devops

In the Dark Launching technique, features are released to a small user base through a dedicated deployment pipeline. In the below given diagram of Facebook Dark Launch, you can see that that only one deployment pipeline is turned on to deploy the new features to a select set of users. The remaining hundreds of pipelines are all turned off at this point. The specific user base on which the features have been deployed are continuously monitored to collect feedback and identify bugs. These bugs and feedback will be incorporated in development, tested and deployed on the same user base until the features becomes stable. Once stability is achieved, the features will be gradually deployed on other user bases by turning on other deployment pipelines.

Facebook does this by wrapping code in a feature flag or feature toggle which is used to control who gets to see the new feature and when. This exposes pain points and areas of the application’s infrastructure that needs attention prior to the full-fledged launch while still simulating the full effect of launching the code to users. Once the features are stable, they are deployed to the rest of the users over multiple releases. 

This way Facebook has a controlled or stable mechanism for developing new functionality to its massive user base. On the contrary if the feature does not get a good response they have an option to rollback on their deployments altogether. This also helps them to prepare their servers for deployment as they can predict the user activity on their website and they can scale up their servers accordingly. The diagram given above depicts how a dark launch takes place at Facebook.

Facebook, Amazon, Netflix and Google, along with many leading tech giants, use dark launches to gradually release and test new features to a small set of their users before releasing to everyone.

The intention of DevOps is to create better-quality software more quickly and with more reliability while inviting greater communication and collaboration between teams. It is also an automation process that allows quick, safe and high quality software development and release while keeping all the stakeholders in the loop. This is the real reason why DevOps is seeing an all-time high adoption leading to increasing career opportunities in DevOps.

View Upcoming DevOps Batches

Now that you have understood what is DevOps , check out the DevOps training by Edureka, a trusted online learning company with a network of more than 250,000 satisfied learners spread across the globe. The Edureka DevOps Certification Training course helps learners to understand what is devops and gain expertise in various DevOps processes and tools such as Puppet, Jenkins, Nagios, Ansible, Chef, Saltstack and GIT for automating multiple steps in SDLC.

Got a question for us? Please mention it in the comments section and we will get back to you.

Pallavi PoojaryAbout Pallavi Poojary (14 Posts)

Pallavi is a technology enthusiast who writes on hot technologies such as Big Data and DevOps, and industry-relevant skills like Project Management. She is a believer in transformation of careers through learning.


Share on
Comments
9 Comments
  • Narendra

    Liked the above video. Nice practical explanation.
    Can you tell me how a mainframe applications are tested automatically. As mainframe do not have any tools for testing.

  • Uttam K

    I in one word, you made me happy… this is an amazing easily explained the concept… i love it…

    • EdurekaSupport

      Hey Uttam, thanks for the wonderful feedback! We’re glad you liked our blog.
      Here’s a blog that will help you understand the career path and available opportunities: https://goo.gl/pxdBGC. Do write to us if you have any further queries and subscribe to stay posted on upcoming blogs. Hope this helps. Cheers!

  • harish

    Hi Team,

    I am working as a Android developer now i want to move into the DevOps … Can you suggest is my decision is right.. moving into the Devops ..

    Thanks
    Harish

    • EdurekaSupport

      Hey Harish, thanks for checking out our blog.
      DevOps has great career opportunities and if this career path interests you, then you can take advantage of the available opportunities. You can read up more about it here: https://www.edureka.co/blog/devops-engineer-career-path-your-guide-to-bagging-top-devops-jobs.
      Professionals who are keen to take up DevOps training should have IT experience. There are no other prerequisites. So if this line of work interests you then you can take up DevOps training and acquire the skills for the transition. Our course would help you in this: https://www.edureka.co/devops.
      Hope this helps. Cheers!

  • shivam rathore

    Who can start learning DevOps , is there a prerequisite , i am from SAP MM background with experience in supply chain management, kindly advise.

    • EdurekaSupport

      Hey Shivam, thanks for checking out our blog.
      Professionals who are keen to take up DevOps training should have IT experience. There are no other prerequisites.
      Hope this helps. Cheers!

  • a

    what can I do to start career in DevOps ?

    • EdurekaSupport

      Hi, thanks for checking out our blog. There are no specific prerequisites to become a DevOps Practitioner. Anyone with basic experience in IT or basic knowledge of Linux and Networking can become a DevOps Practitioner. If you have these skills, then you can get trained in DevOps. You can check out our DevOps course details and find out who can go for this course here: http://www.edureka.co/devops. Also, here’s a blog that will help you understand the career path and available opportunities: https://goo.gl/pxdBGC. Do write to us if you have any further queries. Hope this helps. Cheers!

24 X 7 Customer Support X

  • us flag 1-800-275-9730 (Toll Free)
  • india flag +91 88808 62004