Built for Swift at Scale
These aren't marketing checklist items. They're what makes Hummingbird correct under real production pressure - and invisible to your users, exactly as they should be.
Structured Concurrency
Your server behaves correctly, automatically
Hummingbird embraces Swift's structured concurrency from the ground up — not retrofitted on top of callbacks or promises. Every request runs in a structured task tree, so cancellation and resource cleanup all happen correctly by design.
Local Reasoning
Bring clarity to your concurrent programming by using the structure of your code to define the lifetimes of tasks and associated resources.
Task Cancellation
If a client drops the connection (e.g. cancels a URLSession), Hummingbird detects it and cancels in-flight work automatically. No wasted CPU on abandoned Excel exports or slow database queries.
Graceful Shutdown
On restart or maintenance, Hummingbird finishes all in-progress requests before going offline. No dropped connections, no API errors for your users.
Performance
Low memory, lower running costs
Hummingbird's tiny footprint means you run more on the same hardware, or spend less in the cloud. Backpressure and ARC keep memory stable and latency predictable.
Extremely Low Memory Usage
Hummingbird's memory footprint is tiny by design. More requests per dollar, fewer surprises under load.
Backpressure
If a client sends 2 GB of data faster than you can process it, Hummingbird throttles the socket automatically. Memory stays flat; your server stays stable.
Predictable Performance
No garbage collector pauses. Swift's ARC gives consistent, low-latency responses under load.
Developer Experience
Type-safe, ergonomic, correct
Hummingbird replaces runtime guesswork with compile-time guarantees, and comes with a rich ecosystem of ready-to-run templates.
RequestContext
Replace untyped request storage (request["user"] as? User) with a struct you define. context.user is a User, non-optional, known at compile time. Unlocks powerful middleware design patterns.
Rich Ecosystem
Templates and example projects for HTTP/2, WebSockets, authentication, and more - ready to clone and run.
Ergonomic Swift
Swift's expressive syntax makes route handlers, middleware, and response types clean and readable.
Hummingbird