What is DevOps lifecycle? – Part 2
DevOps is a combination of Development and Operations. It is a methodology and a collective term for a set of processes, methods, and systems used to promote collaboration, communication, and integration between different teams to make the organization’s processes faster, more efficient, and continuous. According to DevOps best practices, the flow in the software development lifecycle can be divided into multiple stages. This article will discuss the necessary stages in the DevOps lifecycle that empowers leading engineering teams today.
Each phase in the DevOps lifecycle will target the gaps between development and operations and drive DevOps through continuous integration, testing, delivery, deployment, operation, and monitoring. Let go through eachstage and discuss each of the DevOps lifecycle phases below
1. Development Phase
The first phase is the planning phase and in this stage, Developers/Leads/Architects will be having continuous meetings and discussions with Product owners / Business owners to understand the business & product requirements and finalize the product roadmap. Usually, all planning activities will occur before actual coding begins.
The Roadmap will be further divided into Epics, Features, and user stories. The user stories illustrate Ordered Steps, User personas, Outline subtasks or tasks, and Definition of “done”.
The final roadmap will be documented according to the requirements and using appropriate code planning tools to set importance and estimate implementation time for each user story. Popular code planning tools to help track known issues and perform project management.
Popular code planning tools
In the secondphase, the Developer will start the actual coding based on the requirements. Typically the dev team will write code using an integrated development environment and languages including Go, Python, Java. In order to maintain the code, tools such as GitHub, GitLab, Bitbucket, or Stash are used for version control. With the help of version control tools, a stable version of the application code can be built during the continuous development phase. Also, this is useful for maintaining the code repository among all developers in the team.
IIn this Third phase, Fetch source code from different repositories and combine them to build the package for release to production. Developers can use Gradle, Maven, and similar tools to package the code into .exe (executable) files. code review, integration testing, unit testing, sonarQube, performance tests, health checks will be part of the code building process.
Popular build tools:
In this Fourthphase, After the code build process,continuous bug testing is performed on the developed software. Manual / Automated testing will differ from organization toorganization. Through automated testing developers can save considerable time wasted in manual testing. Reports generated by automated tests will improve the test evaluation process and make it easier to analyze failed test cases. Sample tools like selenium, Junit are used to automate the testing phase and code quality.
Popular test automation tools:
2. Deployment phase
In this Fifth phase, the Release phase is the stage in the lifecycle of DevOps where code will be ready to be deployed in the environment like (UAT / Staging / Pre-Prod). Based on the organization to organization the approval process will be granted by different personnel for the approval process.
Popular release management tools:
In this Sixth phase, the finalized application code will be deployed to the pre-prod/production server. Configuration management is the key process at this stage. It executes the precise deployment of application code on all servers, establishes and manages the consistency of application performance and functional conditions. Publish the code to the servers, schedule updates for all servers, and keep these configurations consistent throughout the production process.
Jenkins, Teamcity, Ansible, Puppet, and Chef are some effective DevOps tools for configuration management, and they often perform rapid and continuous deployment of new code.
Popular deployment tools:
In this Sixth step, Once the application is deployed, the operations team will perform activities such as Infrastructure changes, configuration, capacity and resource management, security check, data backup, log back up, database management … etc. In simpler terms, The purpose of continuous operation and maintenance is to automate the process of released applications and subsequent updates. The development cycle in continuous operation and maintenance is shorter so that developers can continue to accelerate the time to market the application.
The last stage of the DevOps lifecycle is to monitor the entire environment. In this step, the delivered application to the customer has been monitored on downtime and uptime, failures, errors of application and disaster recovery, and so on. More precisely, the developer records data about the use of the application and continuously monitors each function. “Server is not accessible” or “Insufficient memory” are some common system errors that can be resolved at this stage.
Continuous monitoring helps to maintain the availability of services in the application. It can also identify the threat and root cause of recurring system errors. At this stage, security issues can be resolved, and defects can be detected and repaired automatically.
Popular Monitoring tools:
What is CICD ?
I believe that most often people get confused between DevOps and CI/CD, so how to understand the relationship between DevOps and CI/CD? It can be understood as follows:
CICD is the method of delivering applications to end-users through automation in the application development phase. The main goal of CICD is to solve the problems caused by integrating new code. To be more specific, CICD enables continuous automation and continuous monitoring throughout the lifecycle of the application, i.e. from the integration to the testing phase and to delivery and deployment.
On the other hand, DevOps is an operational philosophy that promotes collaboration between the development and operations team by automating the build, test, and deployment of applications, and It is implemented using the CICD pipelines. These associated transactions are commonly referred to as “CI/CD The Conduit ”, Supported by development and operations teams in an agile manner.
The below information will walk you through DevOps CICD in a nutshell.
is the practice of automatically detecting, pulling, building (integration testing, code review, unit testing, and packaging) more frequently on a regular interval after source code changes. The goal of continuous integration is to quickly ensure that the new changes submitted by developers are good and suitable for further use in the codebase. This practice will allow us to determine whether the new code and the original code can be properly integrated.
After completing the automated process of building and unit testing and integration testing in CI, continuous delivery is to have a codebase that can be deployed manually to the production environment after the appropriate approval process.
In order to achieve an efficient continuous delivery process, it is important to ensure that CI is built into the development pipeline and every stage (from the merging of code changes to the delivery of a production-ready build) involves test automation and code release automation. Note: Continuous delivery does not mean that every change in the source code must be deployed to the production environment. It means that any code modification can be deployed at any time.
is a logical next step after continuous delivery: continuous deployment is a practice to publish production-ready builds automatically to production environments. Unlike Continuous Delivery, there is no manual approval step before releasing it into production.
My Two cents
In DevOps, all participants (all engineers)are responsible for making the organization’s processes faster, more efficient, and continuous.
To understand DevOps more, refer to how AWS, Microsoft, Google, Facebook, GitHub do DevOps.
|How to DevOps||Link|
|What is DevOps from Microsoft’s Donovan Brown||View Details|
|How GitHub does DevOps||View Details|
|How Google does DevOps||View Details|
|How Facebook does DevOps||View Details|
|How Apple does DevOps||View Details|
|Approach to DevOps by Launch Darkly (Funny)||View Details|
|How AWS does DevOps||View Details|
|Why Microsoft does DevOps||View Details|
DevOps is in-depth cooperation between development and operation and maintenance. It is impossible to understand DevOps without understanding the lifecycle of DevOps. Each stage of the DevOps lifecycle is controlled by two common factors: maximum automation and continuity.