Browse Clojure Foundations for Java Developers

Case Study: Developing a Web Service

An end-to-end walk-through: routing, validation, persistence, tests, and deployable packaging.

Case studies make the chapter concrete. They show how the pieces fit: request handling, routing, validation, persistence, and observability—plus the kinds of decisions that keep the codebase readable.

This section walks through building a small web service in an idiomatic way: keep domain logic pure, keep HTTP and DB at the edge, and make the system easy to test and operate.

In this section

Revised on Friday, April 24, 2026