Stateless by Design: Lessons From Building...
summary
Describes building a stateless IaC CLI called Deck that uses the Kong Gateway admin API as the single source of truth, parsing YAML/JSON into an in‑memory target state, listing live resources into an in‑memory current state, then doing per‑entity diffs and executing a concurrent sync. Explains concrete choices: sync vs apply for full versus additive reconciliation, tag-based scoping and schema-aware diffing, caching schemas for performance, and tradeoffs around renames without IDs, ID collisions, and failure handling.
AI-written summary · about
chapters (26)
- 0:00Introduction to talk
- 1:06What is declarative IAC
- 2:29How IAC reconciliation works
- 4:33Is this talk for you
- 5:58Why statelessness matters
- 7:03Kong Gateway as source of truth
- 8:05Benefits of stateless CLI
- 10:13Avoiding unnecessary state
- 10:34How Deck works overview
- 12:02Designing stateless CLI inputs
- 13:45API requirements for stateless IAC
- 14:08Design principles part 1
- 15:53Deterministic reconciliation
- 21:10Deletion semantics contract
- 24:14Enforcing scope and ownership
- 26:27Resolving foreign references
- 27:52Handling partial recovery
- 28:34Challenges with stateless IAC
- 28:56Renaming without IDs confusion
- 31:03Trade-offs in implementation
- 34:33Known challenges part 1
- 35:38Known challenges part 2
- 37:03Schema aware diffing
- 37:45Schema changes across versions
- 38:25Stateful vs stateless IAC
- 39:48Conclusion and Q&A
