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

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.