From straight-line pipelines to pipelines as code
An event-driven re-architecture, a project that had to stop, and the pivot Document Cloud built its platform on.
context
Adobe's in-house CI/CD platform (Rails, JavaScript, React, AWS, SQL) already existed when I joined. Pipelines ran as straight-line execution: step A to step B, with little room for teams to shape their own flow.
build act 1: event-driven
As an engineer on the platform, I re-architected it from straight-line execution to an event-driven design. That opened the door to pipelines teams could customize. On top of it I built two features:
- Deployment guardrails that blocked production deploys during restricted periods unless an exception was granted.
- Alternate branch merging, which kept non-production deploys moving without touching the main branch.
I also hardened the AWS CodeBuild and Lambda build environments with security fixes that let teams run customized pipelines safely. I cut CI build time and cost, and designed observability and monitoring for the platform.
build act 2: the project that had to stop
Later, as tech lead, I oversaw a project to rebuild the pipeline engine on a graph-based architecture, and helped with its technical side. It borrowed much of the event-driven architecture. After 6 to 9 months it had grown too complex, and it couldn't reach its performance target of at least matching the existing platform.
build act 3: the pivot
I introduced the idea of productizing pipelines as code, and the team pivoted the whole effort to it. The package already included translators: every pipeline was written in YAML, but teams could use different schemas. One followed the platform's familiar structure. Document Cloud used an entirely different schema of its own. Each was translated into the platform's native pipelines.
decisions
- Stop, and keep what's valuable. The graph-based rebuild wasn't going to land. Pipelines as code was the piece worth shipping.
- Meet teams where they are. Translators let a team keep its own pipeline schema and still run on the shared platform.
- Speed and safety together. Guardrails protected production during restricted periods, and alternate branch merging kept everything else moving.
results
Document Cloud, one of Adobe's three business clouds, built its platform on pipelines as code, keeping its own schema while running on the shared platform.
learned
The most useful thing I did on that project wasn't writing code. It was seeing which part of it was worth saving.