The Secrets Behind Plumber: Managing Thousands of Pipelines at Semaphore
summary
Plumber runs thousands of pipelines daily and is implemented in Elixir on BEAM with PostgreSQL, RabbitMQ and Kubernetes, claiming high availability via supervision trees and liveness probes and horizontal scaling by adding pods and looper workers. Pipeline lifecycle maps to a finite state machine with loopers that lock rows, transition states, and a stuck-state reworker that uses exponential backoff and a circuit breaker after five retries. Examples show adding stopping and queuing states and how jobs are signaled and terminated.
AI-written summary · about
chapters (12)
- 0:00Introduction to Plumber
- 1:05Pipeline processing overview
- 3:33Functional requirements for Plumber
- 4:37Non-functional requirements
- 5:39Plumber architecture decisions
- 7:03Finite state machine model
- 9:08Worker implementation details
- 11:00Handling stuck pipelines
- 13:27Extending functionality
- 14:52Adding pipeline queue
- 16:18Requirements fulfillment recap
- 17:01Conclusion and resources
