Continuous delivery explained
Continuous delivery (CD) is a software engineering approach in which teams produce software in short cycles, ensuring that the software can be reliably released at any time.[1] [2] It aims at building, testing, and releasing software with greater speed and frequency. The approach helps reduce the cost, time, and risk of delivering changes by allowing for more incremental updates to applications in production. A straightforward and repeatable deployment process is important for continuous delivery.
Principles
Continuous delivery treats the commonplace notion of a deployment pipeline[3] as a lean Poka-Yoke:[4] a set of validations through which a piece of software must pass on its way to release. Code is compiled if necessary and then packaged by a build server every time a change is committed to a source control repository, then tested by a number of different techniques (possibly including manual testing) before it can be marked as releasable.
Developers used to a long cycle time may need to change their mindset when working in a CD environment. Any code commit may be released to customers at any point. Patterns such as feature toggles can be very useful for committing code early which is not yet ready for use by end users. Using NoSQL can eliminate the step of data migrations and schema changes, often manual steps or exceptions to a continuous delivery workflow.[5] Other useful techniques for developing code in isolation such as code branching are not obsolete in a CD world, but must be adapted to fit the principles of CD - for example, running multiple long-lived code branches can prove impractical, as a releasable artifact must be built early in the CD process from a single code branch if it is to pass through all phases of the pipeline.
Deployment pipeline
Continuous delivery is enabled through the deployment pipeline. The purpose of the deployment pipeline has three components: visibility, feedback, and continually deploy.[6]
- Visibility – All aspects of the delivery system including building, deploying, testing, and releasing are visible to every member of the team to promote collaboration.
- Feedback – Team members learn of problems as soon as possible when they occur so that they are able to fix them as quickly as possible.
- Continually deploy – Through a fully automated process, you can deploy and release any version of the software to any environment.
Tools/tool types
Continuous delivery takes automation from source control all the way through production. There are various tools that help accomplish all or part of this process.[7] These tools are part of the deployment pipeline which includes continuous delivery. The types of tools that execute various parts of the process include: continuous integration, application release automation, build automation, application lifecycle management.[8]
Architecting for continuous delivery
To practice continuous delivery effectively, software applications have to meet a set of architecturally significant requirements (ASRs) such as deployability, modifiability, and testability.[9] These ASRs require a high priority and cannot be traded off lightly.
Microservices are often used when architecting for continuous delivery.[10] The use of Microservices can increase a software system's deployability and modifiability. The observed deployability improvements include: deployment independence, shorter deployment time, simpler deployment procedures, and zero downtime deployment. The observed modifiability improvements include: shorter cycle time for small incremental functional changes, easier technology selection changes, incremental quality attribute changes, and easier language and library upgrades.[10]
Implementation and usage
The original CD book written by Jez Humble and David Farley (2010) popularized the term; however, since its creation the definition has continued to advance and now has a more developed meaning. Companies today are implementing these continuous delivery principles and best practices. The difference in domains, e.g. medical vs. web, is still significant and affects the implementation and usage. Well-known companies that have this approach include Yahoo!,[11] Amazon,[12] Facebook,[13] Google,[14] Paddy Power[1] and Wells Fargo.[15]
Benefits and obstacles
Several benefits of continuous delivery have been reported.[1] [16]
- Accelerated time to market: Continuous delivery lets an organization deliver the business value inherent in new software releases to customers more quickly. This capability helps the company stay a step ahead of the competition.
- Building the right product: Frequent releases let the application development teams obtain user feedback more quickly. This lets them work on only the useful features. If they find that a feature isn't useful, they spend no further effort on it. This helps them build the right product.
- Improved productivity and efficiency: Significant time savings for developers, testers, operations engineers, etc. through automation.
- Reliable releases: The risks associated with a release have significantly decreased, and the release process has become more reliable. With continuous delivery, the deployment process and scripts are tested repeatedly before deployment to production. So, most errors in the deployment process and scripts have already been discovered. With more frequent releases, the number of code changes in each release decreases. This makes finding and fixing any problems that do occur easier, reducing the time in which they have an impact.
- Improved product quality: The number of open bugs and production incidents has decreased significantly.
- Improved customer satisfaction: A higher level of customer satisfaction is achieved.
Obstacles have also been investigated.
- Customer preferences: Some customers do not want frequent updates to their systems.
- Domain restrictions: In some domains, such as telecom, medical, avionics, railway and heavy industries, regulations require customer-side or even on-site testing of new versions.
- Lack of test automation: Lack of test automation leads to a lack of developer confidence and can prevent using continuous delivery.
- Differences in environments: Different environments used in the development, testing and production can result in undetected issues slipping to the production environment.
- Tests needing a human oracle: Not all quality attributes can be verified with automation. These attributes require humans in the loop, slowing down the delivery pipeline.
Eight further adoption challenges were raised and elaborated on by Chen. These challenges are in the areas of organizational structure, processes, tools, infrastructure, legacy systems, architecting for continuous delivery, continuous testing of non-functional requirements, and test execution optimization.
Strategies to overcome adoption challenges
Several strategies to overcome continuous delivery adoption challenges have been reported.
Strategies to Overcome CD Adoption ChallengesStrategy | Description |
---|
Selling CD as a painkiller | Identify each stakeholder's pain points that CD can solve, and sell CD as a painkiller to that stakeholder. This strategy helps to achieve buy-in from the wide range of stakeholders that a CD implementation requires. |
Dedicated team with multi-disciplinary members | Without a dedicated team, it can be hard to progress because employees are often assigned to work on other value streams. A multi-disciplinary team not only provides the wide range of skills required for CD implementation but also smooths the communication with related teams. |
Continuous delivery of continuous delivery | Organize the implementation of CD in a way that delivers value to the company as early as possible, onboarding more projects gradually, in small increments and eventually rolling out CD across the whole organization. This strategy helps justify the investment required by making concrete benefits visible along the way. Visible benefits, in turn, help to achieve the sustained company support and investment required to survive the long and tough journey to CD. |
Starting with easy but important applications | When selecting the first few applications to migrate to CD, choose the ones that are easy to migrate but that are important to the business. Being easy to migrate helps to demonstrate the benefits of CD quickly, which can prevent the implementation initiative from being killed. Being important to the business helps to secure the required resources, demonstrates clear and unarguable value, and raises the visibility of CD in the organization. |
Visual CD pipeline skeleton | Give a team a visual CD pipeline skeleton that has the full CD pipeline view but with empty stages for those they cannot implement yet. This helps to build up a CD mindset and maintain the momentum for CD adoption. The pipeline skeleton is especially useful when the team's migration to CD requires a large effort and mindset changes over a long period of time. |
Expert drop | Assign a CD expert to join tough projects as a senior member of the development team. Having the expert on the team helps to build the motivation and momentum to move to CD from inside the team. It also helps to maintain momentum when the migration requires a large effort and a long period of time. | |
Relationship to DevOps
See main article: DevOps. DevOps is a software engineering approach that centers around cultural change, specifically the collaboration of the various teams involved in software delivery (developers, operations, quality assurance, management, etc.), as well as automating the processes in software delivery.[17] [18] [19]
Relationship to Continuous Deployment
See main article: Continuous deployment. Continuous deployment is a software engineering approach which uses automated software deployments.[20] In it, software is produced in short cycles but through automated software deployments even to production rather than requiring a "click of a button" for that last step. Therefore, continuous deployment can be considered a more sophisticated form of automation.[21] Academic literature differentiates between continuous delivery and continuous deployment according to deployment method; manual vs. automated.[2] [22]
See also
Further reading
- Book: Humble . Jez . Farley . David . Continuous Delivery: Reliable Software Releases Through Build, Test and Deployment Automation. 978-0-321-60191-9 . Addison-Wesley . 2010.
- Book: Wolff . Eberhard . A Practical Guide to Continuous Delivery. 978-0-134-69147-3 . Addison-Wesley . 2017 .
Notes and References
- 10.1109/MS.2015.27. Continuous Delivery: Huge Benefits, but Challenges Too. IEEE Software. 32. 2. 50–54. 2015. Chen. Lianping. 1241241.
- Continuous Integration, Delivery and Deployment: A Systematic Review on Approaches, Tools, Challenges and Practices . Mojtaba . Shahin . Muhammad . Ali Babara . Liming . Zhu . IEEE Access . 5 . 10.1109/ACCESS.2017.2685629 . 2017 . 3909–3943 . 1703.07019 . 2017arXiv170307019S . 11638909 .
- Book: 10.1109/AGILE.2006.53. The Deployment Production Line. Agile 2006 (Agile'06). 113–118. 2006. Humble. J.. Read. C.. North. D.. 0-7695-2562-8. 16572138.
- Continuous Software Engineering and Beyond: Trends and Challenges . Brian . Fitzgerald . 2014-06-03 . 1st International Workshop on Rapid Continuous Software Engineering . http://continuous-se.org/ . Association for Computing Machinery . New York, NY . 1–9 . 978-1-4503-2856-2 . 10.1145/2593812.2593813 . 2014-10-24 . https://web.archive.org/web/20141025021033/http://staff.lero.ie/stol/files/2014/03/rcose2014_fitzgerald.pdf . 2014-10-25 . dead . 10344/3896 . free .
- Web site: Continuous Deployment with MongoDB at Kitchensurfing . Kluge . Lars . 12 September 2013 . slideshare.net . 3 January 2014.
- Duvall. Paul. 2012. Continuous Delivery: Patterns and Anti-Patterns in Software Lifecycle. Refcardz. October 9, 2015. June 19, 2018. https://web.archive.org/web/20180619062324/http://www.dccia.ua.es/dccia/inf/asignaturas/MADS/lecturas/10_Continuous_Delivery_Dzone_Refcardz.pdf. dead.
- Phillips . Andrew . 29 July 2014 . The Continuous Delivery Pipeline – What it is and Why it's so important in Developing Software . DevOps.com . October 9, 2015 . https://web.archive.org/web/20150928084134/http://devops.com/2014/07/29/continuous-delivery-pipeline/ . 28 September 2015 . dead .
- Binstock . Andrew . 16 September 2014 . Continuous Delivery: The Agile SUccessor . Dr. Dobb's the World of Software Development . San Francisco . UBM.
- Towards Architecting for Continuous Delivery. Lianping. Chen. 2015. Montréal, Canada. The 12th Working IEEE/IFIP Conference on Software Architecture(WICSA 2015). http://wicsa2015.org/. IEEE. 10.1109/WICSA.2015.23.
- Microservices: Architecting for Continuous Delivery and DevOps. Lianping . Chen . 2018 . The IEEE International Conference on Software Architecture (ICSA 2018). http://icsa-conferences.org/2018/ . IEEE.
- Web site: Implementing Continuous Delivery at Yahoo! . 23 October 2013 . confreaks.tv.
- Web site: Velocity 2011: Jon Jenkins, "Velocity Culture" . 20 June 2011 . youtube.com.
- Web site: Rapid Release At Massive Scale. 2017-08-31.
- Web site: The Case for Continuous Delivery . Humble . Jez . 13 February 2014 . thoughtworks.com . 16 July 2014.
- Web site: 2014-year-continuous-integration-revolution . jFrog . December 2014.
- Leppänen. M.. Mäkinen. S.. Pagels. M.. Eloranta. V. P.. Itkonen. J.. Mäntylä. M. V.. Männistö. T.. 2015-03-01. The Highways and Country Roads to Continuous Deployment. IEEE Software. 32. 2. 64–72. 10.1109/MS.2015.50. 18719684. 0740-7459.
- Book: Humble . Jez . Farley . David . 2011 . Continuous Delivery: reliable software releases through build, test, and deployment automation . Pearson Education Inc. . 978-0-321-60191-9.
- Hammond . Jeffrey . 9 September 2011 . The Relationship between DevOps and Continuous Delivery . Forrester Research . Forester.
- Book: Swartout, Paul . 2012 . Continuous Delivery and DevOps: A Quickstart guide. Packt Publishing . 978-1849693684 .
- 10.1016/j.jss.2017.02.013. Continuous Delivery: Overcoming adoption challenges. Journal of Systems and Software. 128. 72–86. 2017. Chen. Lianping. free.
- Web site: Continuous Deployment: An Essential Guide . . 2019-10-02 . . 2022-11-28 . Continuous deployment is the natural outcome of continuous delivery done well. Eventually, the manual approval delivers little or no value and is merely slowly things down. At that point, it is done away with and continuous delivery becomes continuous deployment..
- Book: 10.1109/ESEM.2017.18 . 978-1-5090-4039-1 . Beyond Continuous Delivery: An Empirical Investigation of Continuous Deployment Challenges . 2017 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM) . 111–120 . 2017 . Shahin . Mojtaba . Babar . Muhammad Ali . Zahedi . Mansooreh . Zhu . Liming . 3479812 .
- Web site: Building Evolutionary Architecture .