State is Hard: An SDK for Building Stateful Applications
summary
DC/OS SDK provides a framework generator on Mesos that codifies the shared 95% of stateful-service code and ships working frameworks for Kafka, Cassandra, Elastic, HDFS and Edge-LB. It uses pods and plans with goal state semantics (finished vs running), lets a prepare task write persistent volumes consumed later, injects sidecar tasks into running executors for online maintenance, and leverages multi-role + reservation refinement to create clean offer streams. Demos show YAML services (45 lines to 355 lines), REST APIs, Java hooks for custom recovery, S3 backup/restore and working readiness checks.
AI-written summary · about
chapters (11)
- 0:00Intro
- 1:53Stateful Problems
- 4:00Frameworks
- 6:42SDK Features
- 8:32General Design: Pods
- 10:20Stateful Design: Resource Sets
- 15:00Sidecars
- 16:37Sidecar Demo
- 22:24Extensibility: Failure Recovery
- 30:28The Future
- 33:24Questions?
related talks
46mWriting Stateful Frameworks
51mExploring Stateful Microservices in the Cloud Native World
25mCloudstate—Towards Stateful Serverless
25mElastic Scaling of Stateful Network Functions
21mDDD and FSM: tackling complexity with state machines
33mCloudstate Towards Stateful Serverless
45mThe simplest way to build resilient applications
38mExploring Stateful Microservices in the Cloud Native World
