Duckula: Type Safe Backend Services with Clojure, HTTP & Avro
summary
Duckula is a small Clojure micro‑framework that enforces Avro+JSON schemas at the HTTP edge, turning every endpoint into a post-only RPC with built‑in automatic validation, standardized logging and metrics, and an opt‑in Swagger UI. Teams share Avro schemas between Clojure and TypeScript, the runtime rejects invalid publishes/requests, and production services report lower debugging overhead after months of use. Tradeoffs: runtime validation adds latency and Avro can’t express all business rules, but correctness and observability measurably improve.
AI-written summary · about
chapters (4)
related talks
06mDelighting users with RESTful APIs and DuckDB
36mGrudging Monkeys and Microservices
27mPowerful Data Access in Clojure
47mServerless Microservices
44mFrom REST to CQRS with Clojure, Kafka, & Datomic
24mServant: Web APIs at the Type Level
15mEcto.Schema without Ecto.Repo
57mLessons in Building a System that Processes More than 70 Billion Events Daily
