What happened

For four years, Encore’s engineers developed their backend applications’ build system on a shared remote machine. This presented significant friction, as most developers worked on macOS laptops while the production environment relied on Firecracker microVMs.

The core issue was the inability to run the same build system locally without duplicating infrastructure and introducing inconsistencies. To address this, they built ‘crackling,’ a single microVM API that drives Firecracker on Linux and Apple’s hypervisor (Virtualization.framework) on macOS. This required substantial reimplementation of the Linux image toolchain to function correctly on macOS – a significant undertaking involving rebuilding much of the core process.

Why it matters

This wasn't simply about convenience; it was about efficiency and reducing operational overhead. By enabling developers to build directly on their macOS laptops, Encore significantly reduced dependency on the shared remote machine, eliminating potential bottlenecks, synchronizing environments across the team, and improving developer productivity. The success of ‘crackling’ demonstrates a crucial shift: empowering developers with the tools they need to work seamlessly within the existing infrastructure.

But, but, but…

Despite this clever workaround, there were inherent complexities and trade-offs. The process involved extensive manual intervention – specifically, painstakingly rebuilding large portions of the Linux image toolchain on macOS.

The biggest challenge revolved around bridging the gap between Docker layers and Firecracker’s block device booting mechanism. This necessitated a custom conversion tool that reassembled the image layer by layer before deploying it to Firecracker. While effective, this created a significant time investment and reliance on specific build configurations.

“we wanted to run the same build system on our laptops while keeping Firecracker in production, so we built crackling...”
— Dr Non

The counter-take

The story highlights that often technical teams are forced to adopt inefficient processes due to the limitations of their existing tooling, rather than the true capabilities or costs of alternative solutions. This case showcases how strategic investment in cross-platform support and automation can dramatically improve developer workflows and reduce operational friction – a narrative frequently overlooked within larger organizations.

The AI angle

The development of ‘crackling’ highlights a broader trend toward distributed computing and containerization – accelerated by technologies like Firecracker. This approach enables greater flexibility and scalability for application deployments, offering potential benefits in terms of resource utilization and rapid iteration cycles; however, this also creates more moving parts and complexities to manage. The ability to build and deploy containers consistently across different operating systems represents a significant step towards an increasingly fluid and automated software ecosystem.