Plumeria guide
Plumeria is a keep-alive HTTP/1.1 server for Clojure on Jolt. Each connection runs on its own Jolt fiber and makes ordinary blocking-style socket calls, while the sockets underneath are non-blocking: a read or write that would block parks the fiber on Jolt's kqueue/epoll poller, and Jolt resumes it when the socket is ready. So there's no OS thread per connection, and nothing holds a carrier thread.
Start here
- Getting started: install Jolt, a first server, the socket layer on its own.
- Requests and responses: the Ring request and response maps, streaming and SSE, request bodies, routing, running behind a proxy, ring-core middleware and cookies.
- Limits, timeouts and stopping: every server option with its default, the two request clocks, request framing, the drain.
Features
- Async handlers and handler pools
- Compression
- Static files
- Multipart uploads
- WebSocket
- HTTPS, including automatic Let's Encrypt certificates and running on 443 and dropping root
- Access log, stats and errors
- Supervision with ensemble: a server in a supervision tree, and a pool of stateful workers for handlers
Under the hood
- Architecture: the layers, the concurrency model, the request lifecycle and the testing model.
- Performance: benchmark numbers and what they measure.
- Contributing: tasks, tests, and what a change needs.