Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
Ten years ago, the idea of DevOps sprang from the minds of Andrew Shafer and Patrick Debois (source). A year later they actually named it âDevOpsâ. This tenth anniversary marks a good time to look at where DevOps has taken us as an industry and where we are heading.
This write up is not about vendors, commercial, open source or otherwise. At least not exclusively. This post looks back at the history of DevOps and CI/CD practices and digs into what patterns have evolved over the years and what patterns we see coming over the horizon.
An Agile birth
At the Agile 2008 conference in Toronto, Andrew Shafer did a talk that became the seed for the whole DevOps movement. This is now âancient historyâ in the tech world but itâs worth reminding ourselves that DevOps is an idea that was sprouted by, or at least in the context of, the Agile movement.
Now, the 2001 Agile Manifesto is a bit light on specifics but it is pretty clear onâŠ
- âcontinuous delivery of quality softwareâ
- âdelivering working software frequentlyâ
- âharnessing change ⊠as a competitive advantageâ
It is not a surprise then that DevOps and the practice of CI/CD struck a chord with the Agile people.
From manual to codification
The principal idea that caught the imagination of almost everyone in IT and related professions was the idea of codifying not just business logic, but also the supporting infrastructure around it.
- Continuous integration is in essence a codified manual test and code management process.
- Infrastructure as code and cloud resources with an API are codified manual installation and configuration processes.
- Continuous delivery and deployment are in essence codified manual release activities.
Without codification, the other big promises of DevOps and Agile are pies in the sky. Codification has two main applications:
Reduced lead times. Testing an application, setting up a server or installing an application can be all pretty time consuming activities. Abstracting the process into code and re-using that code is almost always a net gain in productivity and drop in lead times.
Risk aversion. Even if you are not the quickest and Agile of the bunch, codifying helps address the inherent danger of âchanging thingsâ and amps up the predictability of releasing quality software.
- Automated testing catches bugs earlier and faster.
- Infrastructure as code prevents configuration drift.
- Automated rollbacks provide a safety valve for botched releases.
- All of the above are less prone to human error when automated.
Not a goal, but certainly a huge side benefit is that code creates a shared language, platform and understanding between developers and sys admins. This eponymous 2009 presentation by John Allspaw and Paul Hammond from Flickr catches that spirit completely
From âcodifying all the thingsâ sprang forth an entire industry of products and services, hosted, SaaS, open source, commercial and everything in between: Heroku, Cloud Foundry, AWS Beanstalk ,TravisCI, Jenkins, CodeShip, Bamboo, Puppet, Ansible, Terraform. The list goes on and on.
From codification to experimentation
The first wave of DevOps practices ticked the âcontinuousâ, âfrequentâ and âworking softwareâ boxes of the Agile manifesto. However, it turns out that that other box, âharnessing change ⊠as a competitive advantageâ, is a bit of an enigma. What changes are actually to our advantage? How do we know when they are not? What do customers actually want?
These types of questions have always been the domain of marketing, UX and product management people. A/B and multi-variate testing, test audiences and short-lived experimental features are typical weapons found in the field. The base assumption is âwe donât know the answers. Letâs experiment and find out.â
This experimentation mindset is now making its way into the domain of the back end. And it was high time. Software engineers, architects and sys admins are by nature more predictors than adapters. We predict the future and build our code base and infrastructure to get that future job done as best as possible. We call it âspecificationâ or âestimation.â
Thereâs a snag though. Raise your hand if youâve done these types of predictions and it turned out your weâre wildly off target after things went live. â
Experimentation patterns, tools and services
Ditching predictions and estimates can be a profoundly powerful thing. But the story doesnât end there of course. Over the last few years many patterns, techniques, tools and services have popped up to assist engineers in turning âI donât knowâ into âI have learned. I know nowâ.
1. Blue / green deployments
The granddaddy of them all, and by far the most crude but wide spread pattern is the blue/green deployment. Arguably, many engineers implemented this pattern long before DevOps saw the light of day.
source: https://martinfowler.com/bliki/BlueGreenDeployment.html
A typical blue/green deployment scenario involves two identical environments and some form of switch to route traffic to either environment. Come release time, you deploy to one environment and direct traffic at it. You keep the other environment for fallback in case things go south.
2. Canary releasing
A lot less crude than blue/green deployment is canary releasing. The principle is the same, but the granularity is a lot higher. With canary releasing you can actually start running proper experiments without putting your production environment at risk.
source: https://martinfowler.com/bliki/CanaryRelease.html
Your routing component needs to be âsmartâ to do canary releasing because you want to target only a sliver of your total traffic and direct that traffic to the new version of your app.
Canary releasing is still very much a pattern. The implementation and execution is left as an exercise to the reader. There are however products that already offer this as a first class citizen. With https://vamp.io we allow targeting on many different traffic aspects like user agents, devices, geo location etc. and have support built in to the UI. AWS offers canary releasing in their API Gateway services
AWS Api Gateway Canary Releasing3. A/BÂ testing
A/B testing is canary releasing with a statistical framework around it. By and large it offers similar targeting options as canary releasing but it adds goals to the mix. This helps determining if and how much a different or new version of your app contributes to a specific goal.
source: https://www.optimizely.com/optimization-glossary/ab-testing/
A/B testing is offered by vendors like Optimizely, Visual Website Optimizer (VWO), Google Optimize and is implemented as feature in many other services like Unbounce, Mailchimp and Kissmetrics. Companies also build it themselves, like Pinterest and Booking.
However, all of these services and implementations work strictly on the front end (web pages, email etc.). This means you can mostly test visual and textual variations of an existing application. What if you need to experiment on other parts of your application stack? Product and services are appearing in this arena.
Optimizely X Full Stack is a full service solution, covering many languages and run times. In the open source world we have Planout by Facebook, Wasabi by Intuit and Petri by Wix.
4. Feature toggling
Feature toggling is more of a parallel pattern. It integrates aspects of canary releasing and A/B testing into a pattern focused on toggles. These toggles turn application features on and off. Either in general or for target audiences.
Feature togglingâs main virtue is that you can decouple the moment of deployment from the moment of release. Services offering feature toggling are for instance LaunchDarkly and Split.io. Open source alternative are Togglz for the Java platform and Flipper for Ruby.
5. Shadow traffic
Also know as âdark trafficâ, shadow traffic is the practice of syphoning of traffic from the production flow and exposing it to an experimental version of your app, without the end user being directly involved.
This pattern is firmly rooted in the back end and can be used for load & performance testing or as a general sanity check. Implementation at this moment seems to be completely custom, as of the time of writing I could not find any SaaS service that offers shadow traffic. Open source, middleware-type projects like Istio (for the Kubernetes stack) and GoReplay are relatively new.
All implementations need to overcome some thorny issues with how network traffic works at the lowest level with regard to client responses, encryption etc. However, the potential specifically as part of an integrated platform like Kubernetes is high.
Towards an experimentation platform
As experimentation patterns are adopted across the full IT stack, the granularity of experiments and scale at which they are deployed rise. This gives way to a whole set of new problems.
- How to deal with the data output of the experiments? Not every company has a dedicated data science team.
- How to match the infrastructure to the experiments need? Successful experiments might need more/new/different resources quickly.
- How to do all of this at scale and keep your sanity?
Many of these problems are automation problems and fall within the scope of DevOps practices. We can see the first products and services appearing that aim to tackle these issues.
1. Machine learning &Â AI
Using machine learning and artificial intelligence to make sense of the deluge of logs and metrics a typical modern IT stack generates is still in its infancy, but looks really promising.
Pattern recognition, filtering and predictive analysis are all well understood mathematical problems. We can see these techniques appear in DevOps oriented products and services like Signifai and Logz. Both services promises to cut down the noise inherent in data streams and help teams focus on finding the nuggets of gold buried among the scraps.
ElasticSearch, a popular open source search engine used by many to analyse log data, just added machine learning to its feature set. This gives users a relatively easy path into using machine learning to grog their data.
predictive analysis in ElasticSearch ML, source: https://www.elastic.co/guide/en/x-pack/current/ml-overview.html
Leveraging ML and AI to assist in decision making with regard to deployments, scaling, feature toggling and running experiments in general is still largely unexplored terrain.
2. Smart orchestration 2.0âą
Modern container platforms like Kubernetes, Docker Swarm and Mesosphereâs DC/OS fit neatly into the new and emerging patterns of DevOps. Dubbed âCloud Nativeâ, these platform provide portability, scalability and rapid, standardized deployment patterns.
In this context, they are the ideal base infrastructure for running an experiment based IT infrastructure as they tick almost all of the boxes needed for such a system:
- Codified and standardised run times, network and storage through (Docker) containers and related tech.
- Codified deployment process through the platformâs API.
- Smart routing through overlay networks, integrated API gateways and service discovery /Â meshes.
OCI, CSI and CNI aim to standardise the container, storage and network layers of cloud native platforms.
The move to cloud native infrastructures is already happening and already we can see new applications enabled by the cloud native paradigm appear.
Products and frameworks like Istio and Vamp take smart routing to a level where routing decisions become real time malleable application attributes. Coupled with a monitoring solution, smart routing solutions are becoming the back bone of A/B testing and shadow traffic patterns implemented on DC/OS and Kubernetes.
Bin packing is a technique where many application processes share a physical host right up to its capacity as to not let unused capacity go to waste. Both Kubernetes and DC/OS already do this.
Combining this with something like AWS Spot instances takes it to another level of cost efficiency. Interesting advances can be made here by tying that cost level to higher level business goals set, for example, in an A/B test. Many companies have internal cost accounting and attribution to structure their IT cost. This could tremendously help in making the business case for an experimental application or service.
Want to increase innovation? Lower the cost of failureâ Joi Ito, Director MIT Media Lab
If you liked this article, please show your appreciation by clapping đ below!
Tim is a product advocate for https://vamp.io, the smart & stress free application releasing for modern cloud platforms.
Exploring new frontiers in CI/CD and DevOps was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.