How Blockchain Tech Can Improve DevOps Practices in Web3
Tags: web3, devops, blockchain, tutorial
Published: 2022-08-17 10:07:36


![Article Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pzhe6v121m0pdeedmqeh.jpg)

Although in its early stages, Web3 shows promise to deliver the benefits of blockchain and DevOps working together. This article discusses how DevOps practices, processes, tools, and blockchain technologies complement each other to deliver Web3 solutions.

DevOps is an umbrella term encompassing a culture, mindset, development styles, processes, and technologies for software development. DevOps focuses on collaboration, automation, predictable outcomes, shorter delivery cycles, and quicker client feedback to improve the quality of software delivery.

Blockchain is a technology of immutable, distributed ledgers. A blockchain ledger consists of decentralized "blocks" that contain records of events or "transactions" on the ledger's network. Once a blockchain records a transaction, it can't be removed or updated. Blockchains can either be centralized or decentralized, though the inherent nature of the blockchain will always be distributed.

However, most blockchain networks are decentralized, meaning they run on nodes in a network rather than central servers. Additionally, decentralized blockchains are permissionless, meaning anyone can access them or participate in their networks.

Web3 is a hypothetical version of the next generation of the internet. Web2 ushered in the age of dynamic user-generated content, wide adoption of ecommerce, and ease of use. Whereas Web3, powered by blockchain technology, brings in a new era of decentralization by transferring the ownership of user data from large players to users themselves . Web3 organizations, such as ConsenSys, deliver new tooling that promises a range of security and productivity benefits when combined with common DevOps practices.

## How Do DevOps and Blockchain Complement Each Other?

DevOps is a cycle that continuously improves the software delivery chain. Its best practices can enable blockchain technology development through different phases and tooling. Current DevOps tools and practices will help blockchain development using containerization, automation, and short development iterations.

On the other hand, blockchain technology provides a better way to deliver services and data through immutability, security, smart contracts, and so on. In addition, it can lift DevOps delivery to a new level by ensuring quality and eliminating ambiguity.

## How DevOps Practices and Tooling Help Blockchain Development

The section below shows how different DevOps phases can work together to contribute to blockchain development, testing, and delivery.

### Feedback DevOps Phase

In this phase, the blockchain application development team receives feedback from clients, internal teams, or even market research of competitors about improving existing features, or adding new features.

Service request monitoring tools like:
* [Request Tracker](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fbestpractical.com%2Frequest-tracker%26sa%3DD%26source%3Deditors%26ust%3D1660709252338471%26usg%3DAOvVaw0rCUxlP83V1aYtWRBlJcgR)

### Development DevOps Phase

The development team adds new features, improves existing features, or fixes bugs in their blockchain application. They use different tools, technologies, and platforms for development.

Development environments, frameworks, libraries, repos, and toolsets like:

* [Remix IDE](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fremix-project.org%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252340122%26usg%3DAOvVaw3aRoMotb7wqVizl0hyB1VC)
* [Solidity](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fsoliditylang.org%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252340609%26usg%3DAOvVaw2OqkNMP5XyPWqVQLQsW_Zg)
* [Truffle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Ftrufflesuite.com%2Ftruffle%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252341021%26usg%3DAOvVaw3Fv6g-J57LmFzT3YC95XL5)
* [Drizzle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Ftrufflesuite.com%2Fdrizzle%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252341385%26usg%3DAOvVaw1zKWqJDeITb_ULnmfwA9Wd)
* [Ethlint](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fethlint%26sa%3DD%26source%3Deditors%26ust%3D1660709252341868%26usg%3DAOvVaw3_ZosX-BvVhwbnMwkxFJ6L)
* [Radicle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fradicle.xyz%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252342268%26usg%3DAOvVaw3V9wK3fwqxMN2_DmwhI5di)
* [Ethereum Virtual Machine](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fethereum.org%2Fen%2Fdevelopers%2Fdocs%2Fevm%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252342643%26usg%3DAOvVaw086DFXi-6hlFB-wCX12y91) (EVM)

### Testing DevOps Phase

Developers perform unit-testing on their newly-developed code. 

The test team performs system integration testing, performance testing, and so on.

Code testing tools like:

* [Ethereum Tester](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fgithub.com%2Fethereum%2Feth-tester%26sa%3DD%26source%3Deditors%26ust%3D1660709252344224%26usg%3DAOvVaw3Kp0dd1HqurK-DsbErixiF)
* [Ganache](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Ftrufflesuite.com%2Fganache%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252344660%26usg%3DAOvVaw3XJi1I_HY-hAcpmfAPgcty)
* [Diligence Fuzzing](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fconsensys.net%2Fdiligence%2Ffuzzing%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252345134%26usg%3DAOvVaw0tsV9wT-toHCovzDAPzcpN)
* [hevm](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fgithub.com%2Fdapphub%2Fdapptools%2Ftree%2Fmaster%2Fsrc%2Fhevm%26sa%3DD%26source%3Deditors%26ust%3D1660709252345570%26usg%3DAOvVaw34Em50-6ou0CNRUa-K0UUN)

### Integration DevOps Phase

Once all tests are successful, the team pushes the newly-developed code to the source code repository of the blockchain application. A pull request merges the latest changes to the master branch.

CI tools like:

* [CircleCI](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fcircleci.com%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252346891%26usg%3DAOvVaw0pUpreykFgFKy98iU77qDf)
* [Jenkins](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fwww.jenkins.io%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252347320%26usg%3DAOvVaw1hpEyBBy6gsoFWaEV_B83E)

### Build and Deployment DevOps Phase

The integration into the master branch triggers a build process. This is when the application is built with all the dependencies and is ready for deployment.
Once the build completes, the Continuous Deployment pipeline deploys the application to lower environments like UAT or STAGING.

After deployment, a battery of automated tests run on these environments to ensure everything is working as expected. If all automated tests are successful, the pipeline deploys the latest version of the blockchain application to production.

Build automation and CD tools like:

* [Gradle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fgradle.org%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252348910%26usg%3DAOvVaw2se_LPfCqQg2_9-pCkOWD1)
* [Truffle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Ftrufflesuite.com%2Fdocs%2Ftruffle%2Fadvanced%2Fnetworks-and-app-deployment%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252349379%26usg%3DAOvVaw0SJrfIEi5MNwo1fGwmGqfA)

### Monitoring DevOps Phase

Observability platforms, log management solutions, and monitoring tools collect logs, metrics, traces, and events from the blockchain application. IT teams use these tools to troubleshoot incidents, performance problems, investigate security issues, or plan capacity.

Observability technologies like:

* [Infura](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Finfura.io%2Fproduct%2Foverview%26sa%3DD%26source%3Deditors%26ust%3D1660709252350757%26usg%3DAOvVaw0OlIn3_TZWw7u4cEY1ZAiN)
* [BlockScout](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fgithub.com%2Fblockscout%2Fblockscout%26sa%3DD%26source%3Deditors%26ust%3D1660709252351162%26usg%3DAOvVaw1H3kvQduXULPKvkFaswgm5)
* [Ethernal](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Ftryethernal.com%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252351508%26usg%3DAOvVaw18sVOc81Wy31NgZOnPPBDn)
* [Quine](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fquine.io%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252351896%26usg%3DAOvVaw0QMXlKEw_sIKoAXdt2bGX6)

### Operations DevOps Phase

IT operations teams ensure the blockchain application is running as expected and fulfilling its SLA. They perform necessary maintenance tasks on the infrastructure, apply hotfixes, upgrade software, and so on.

Service management tools like:

* [Spiceworks](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fwww.spiceworks.com%2Ffree-help-desk-software%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252353258%26usg%3DAOvVaw3lupinylPfivdeELgD6SGN)

## How Blockchain Can Help DevOps Practices

As an emerging technology, blockchain has come a long way from just cryptocurrencies and transfer of value to the range of applications that use it now. As the technology matures, it can enhance DevOps and software delivery processes in various ways.

### Transparent Delivery with Immutable Ledger

An application can utilize the immutable ledger technology of a blockchain for more transparent and reliable delivery. Each node in the blockchain can contain a complete history of the software's development process and its dependencies, thus increasing its trustworthiness.

### Quality Assurance with Smart Contracts

The arbitrary code of smart contracts only executes under the successful meeting of predetermined conditions. Therefore, smart contracts can be used to regulate the testing and acceptance process. Additionally, such an approach would help in automating compliance and approval processes.

### SLAs with Smart Contracts

Software delivery can use smart contracts to encode service level agreements for the application's consumers. This can remove ambiguity and disagreements on requirements specified in the agreement. Similarly, a distributed ledger can help settle payments and ensure licensing rights.

### Security and Auditabilty with Immutable Ledger

While the DevSecOps practice strives to ensure software security, a blockchain requiring authentication enhances this security further by validating the players in the network. Log events can be recorded in an immutable ledger so that researchers can trace any security breach back to an exact point in time. Also, since blockchain-based code is immutable and all nodes have the entire history of transactions, supply chain security can be maintained and verified by auditing relevant ledgers of any open source or third-party libraries.

### Mandatory Documentation

Software documentation can often be non-existent, low-quality, or out-of-date. Similarly, multiple versions of the same documents can often cause ambiguity. Not only can an immutable ledger contain a signed version of the latest documentation, but a smart contract can also be activated right before the software delivery to ensure the fulfillment of specific documentation standards.

## The Future of Web3 and DevOps

Web3 will potentially create a new generation of blockchain-based tools, practices, and processes for DevOps. Examples include decentralized, distributed, secure code repositories for open source and business collaboration worldwide. Examples of such code repositories include [Radicle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fradicle.xyz%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252355130%26usg%3DAOvVaw32mU-LQEzBN8IsApGvZbms), or [Ellcrys](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fellcrys.co%2Fgit%26sa%3DD%26source%3Deditors%26ust%3D1660709252355372%26usg%3DAOvVaw10wDc1In32xFnN3UT9-7S6).

Web3 will also call for specialized programming languages to accommodate blockchain constraints and provide a rich set of libraries. An example of such a programming language is [Solidity](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fsoliditylang.org%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252355758%26usg%3DAOvVaw071CkhcT_IBuOOJjPiJuuC). Programmers can use development frameworks like [Truffle](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Ftrufflesuite.com%2Ftruffle%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252356033%26usg%3DAOvVaw1cpM7LVBwc4hNSNHO7A0wi) to build and test their applications and run them on the [Ethereum Virtual Machines](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fethereum.org%2Fen%2Fdevelopers%2Fdocs%2Fevm%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252356274%26usg%3DAOvVaw24pbX02ya30VGhLTgjl2op) (EVM).

Web2 applications allow verification of a message's contents, but not necessarily verification of the sender. In blockchain technology, there's an added security layer of trusted nodes that can verify the sender. Web3 will increase developer trust and security through the immutable ledger and smart contracts, enabling anyone to audit a software's quality and purpose. Tools like [Diligence](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fconsensys.net%2Fdiligence%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252356789%26usg%3DAOvVaw3btXSfdBgUWXxPuo-LFW7H) can audit such smart contracts. Other tools like [Quorum Key Manager](https://medium.com/r/?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fconsensys.net%2Fquorum%2Fkey-manager%2F%26sa%3DD%26source%3Deditors%26ust%3D1660709252357073%26usg%3DAOvVaw0xUigYXuZNbSaSuh2yeF6u) can help secrets and key management.

## Conclusion

DevOps is a widely accepted practice for software delivery. Part of its success is due to adopting cutting-edge technologies as they become available and contribute to their maturity. Blockchain, also being an emerging technology, can benefit greatly from software delivery over the web. Current DevOps tools and practices can help develop applications on top of blockchains, and a more mature blockchain adoption can improve the DevOps practices in return.

Have a really great day!