# 10 Real problems and solutions for your Build & Deploy process

- Speaker: [Ariel M. Moskovich](/wiki/speakers/ariel-m-moskovich.md)
- Event: [Reversim Summit 2016](/wiki/years/2016.md)
- Video: https://www.youtube.com/watch?v=H5Yo5a8SG6g
- Transcript: [/transcripts/2016/24-H5Yo5a8SG6g.md](/transcripts/2016/24-H5Yo5a8SG6g.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [DevOps](/wiki/topics/devops.md), [Infrastructure](/wiki/topics/infrastructure.md), [Debugging](/wiki/topics/debugging.md), [Scalability](/wiki/topics/scalability.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores ten real-world problems and practical solutions encountered while scaling a build and deployment process for a growing engineering organization. The speaker discusses common pitfalls related to infrastructure, Docker containers, networking, and visibility, sharing how their team automated workflows and built custom tooling. Ultimately, the audience learns how to anticipate deployment bottlenecks, prevent traffic loss, and empower developers with self-service deployment capabilities.

## Key points

- [2:30](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=150s) Infrastructure tuning like pre-fetching geo-files can resolve startup timeouts caused by slow initial EBS block access in the cloud.
- [5:03](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=303s) Mismatched Java versions between build servers and runtime containers can lead to bizarre bugs, which is solved by standardizing base images.
- [7:09](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=429s) Docker container name character limits and zombie process handling during unexpected container shutdowns require careful monitoring on older versions.
- [8:14](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=494s) Scaling build pipelines requires separating compilation from Docker image creation and adding proxies to cache dependencies like NPM modules.
- [9:40](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=580s) Implementing connection draining and utilizing container grace periods prevents traffic loss and dropped messages during deployments.
- [10:46](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=646s) Allowing developers to deploy from non-default feature branches requires isolated key-value configurations and automated Slack notifications.
- [22:07](https://www.youtube.com/watch?v=H5Yo5a8SG6g&t=1327s) Comprehensive visibility into production deployments is achieved by integrating deployment events with external dashboards, Slack channels, and logging systems.

## Takeaways

- Implement connection draining and container graceful shutdown periods to eliminate dropped traffic and lost messages during deployments.
- Separate compilation steps from Docker image building workflows to optimize build times and resource usage.
- Empower developers with self-service tools for scaling and deployments while maintaining automated safety checks and alerts.

## Questions this talk answers

- How can we prevent dropping incoming traffic and messages while a service container is being updated or stopped?
- What is the best way to scale build times and registry throughput as the engineering team and number of microservices grow?
- How do we safely allow developers to deploy experimental feature branches to staging or production-like environments without breaking things?

## Technologies

Docker, Jenkins, AWS, RabbitMQ, Consul, S3, Node.js, Java, Mesos, Slack

## Tags

automation, ci/cd, deployment, devops, docker, monitoring, scalability
