6 Tips to Avoid "Integration Hell"
August 26, 2016

Sven Hammar
Apica

Inevitably, software and application developers are forced to delay pushing fixes and features because other parts of the code are not ready. "Integration Hell" earned its name because clients are missing out on the latest versions of applications. This can be avoided with continuous integration.

Continuous Integration (CI) is a software development practice involving "integrating" updates multiple times a day. The process is designed to catch problems early on and prevent "Integration Hell" – clients that miss out on the latest versions of applications because they are not launched, which also negatively impacts on team morale.

Using the CI approach to development, development teams typically write higher quality code, receive immediate notification of broken code, experience reduced deployment time, and see a boost in confidence.

The following six tips can help developers create a better experience working with CI:

1. Commit Code Frequently

CI works best when making frequent small, incremental changes to the application. Clients do not have to wait for weeks between releases for fixes and new features. Organizationally, frequent updates prevent developers from stepping on each other's toes, because problems are typically fixed before a second developer takes a look. With CI, teams spend less time delegating tasks, can take action immediately, and use work time more efficiently.

2. Fix Broken Builds Immediately

Pushing high-frequency updates allows the development team to address broken builds and programming bugs with minimal time between identifying the problem and pushing a fix. Developers using CI should fix problems immediately to get the most out of the practice.

3. Split the Code: Feature Branches

Organizing and separating application code furthers much of CI's selling points. Multiple developers work with hundreds of files, scripts, and templates that all contribute to a larger application. Separating the code allows for independent updates of smaller parts of a larger system element.

The development team can push an update to a smaller segment of the code without worrying about pushing unfinished updates in larger code groupings. Splitting the code makes managing the project easier and allows for reverting smaller code segments — thus losing less work — when there is a problem with an update.

The "Feature Branch" approach, which works well with CI, involves removing code from the "trunk," or main part of the code, so features can be added or upgraded over a longer period of time without disrupting the CI programming flow. Branches are a temporary thing: The relevant code is pulled out of the main application for work and then returned when work is completed. The feature branch approach keeps all end users on the most recent version of the application, which avoids the need to support multiple versions of the same product.

4. Rely on Automation

CI servers are a huge asset in avoiding Integration Hell. Developers can push code as soon as they believe it is ready for use, and the server runs tests on that code to identify problems the developers may have missed. The CI server acts as a gatekeeper and alerts developers of problems with the code so they can fix it for the next update push. This means the development team does not need to worry as much about pushing bad code live; they can spend less time debugging, and more time developing. The one downside is that CI servers require additional setup costs and programming.

5. Use Feature Toggles

Unfinished features can hold up the development process and delay updates. Development teams can work around hang-ups by programming toggles for in-progress features. These are simple "true/false" tests that can be controlled with a variable that either enables or disables a feature. The team can remove the toggle when the feature is ready for production.

6. Include Load and Performance Tests as Part of CI

Changes to a source repository done by the developers can be automatically detected and tested for load and performance. After the tests are complete, the built code is deployed to staging servers for testing from where additional tests are run such as integration or load tests. Upon the successful completion of those tests, the tested and approved code is deployed to production instances.

Sven Hammar is Chief Strategy Officer and Founder of Apica
Share this

Industry News

May 16, 2024

Pegasystems announced the general availability of Pega Infinity ’24.1™.

May 16, 2024

Mend.io and Sysdig unveiled a joint solution to help developers, DevOps, and security teams accelerate secure software delivery from development to deployment.

May 16, 2024

GitLab announced new innovations in GitLab 17 to streamline how organizations build, test, secure, and deploy software.

May 16, 2024

Kobiton announced the beta release of mobile test management, a new feature within its test automation platform.

May 15, 2024

Gearset announced its new CI/CD solution, Long Term Projects in Pipelines.

May 15, 2024

Rafay Systems has extended the capabilities of its enterprise PaaS for modern infrastructure to support graphics processing unit- (GPU-) based workloads.

May 15, 2024

NodeScript, a free, low-code developer environment for workflow automation and API integration, is released by UBIO.

May 14, 2024

IBM announced IBM Test Accelerator for Z, a solution designed to revolutionize testing on IBM Z, a tool that expedites the shift-left approach, fostering smooth collaboration between z/OS developers and testers.

May 14, 2024

StreamNative launched Ursa, a Kafka-compatible data streaming engine built on top of lakehouse storage.

May 14, 2024

GitKraken acquired code health innovator, CodeSee.

May 13, 2024

ServiceNow introduced a new no‑code development studio and new automation capabilities to accelerate and scale digital transformation across the enterprise.

May 13, 2024

Security Innovation has added new skills assessments to its Base Camp training platform for software security training.

May 13, 2024

CAST introduced CAST Highlight Extensions Marketplace — an integrated marketplace for the software intelligence product where users can effortlessly browse and download a diverse range of extensions and plugins.

May 09, 2024

Red Hat and Elastic announced an expanded collaboration to deliver next-generation search experiences supporting retrieval augmented generation (RAG) patterns using Elasticsearch as a preferred vector database solution integrated on Red Hat OpenShift AI.

May 09, 2024

Traceable AI announced an Early Access Program for its new Generative AI API Security capabilities.