Continuing the series on CD for microservices — this post focuses on two key practices, trunk based development and feature toggles. These two practices go a long way in implementing a simple and robust CI process.
In trunk based development (TBD), developers collaborate on code in a single branch called “trunk”. The key benefit is to avoid drift in development branches and the resulting merge hell.
Feature toggles enable commits of a combination of work-in-progress and completed features. With these toggles, you can turn off the manifestation of incomplete features in production, until the features are dev complete and tested sufficiently in pre-production environments.