CoAkka HTTP Runtime · Server + outbound HTTP · Polyglot

Serve and call HTTP from the app

Build an HTTP service or call another HTTP service in the language the app already uses. CoAkka HTTP Runtime handles routing, limits, streaming and graceful shutdown through the same foundation in Go, Python, JVM and the other supported languages.

Connectors 2.3.2 use Core SDK 2.3.0. Packages and compatibility

  1. 01
    A client sends an HTTP requestAn API client, browser, webhook or another service
  2. 02
    The runtime finds the routeMethod/path is matched and request limits are checked
  3. 03
    The handler runs business logicRead input, authorize and call a database or another service
  4. 04
    The client receives a resultA successful response or a clear failure kind for application handling

Why does CoAkka HTTP Runtime exist?

When every language uses a different HTTP stack, the same API can handle limits, timeouts, streaming, observability and shutdown in inconsistent ways. CoAkka HTTP Runtime provides one way to start an HTTP service, declare routes, receive requests and return responses; the application focuses on handlers and business logic through a natural language API.

An existing application can adopt CoAkka HTTP Runtime for an HTTP service it owns. The app still chooses how to handle each request.

Inbound

HTTP service and routing

Start a service, declare method/path routes and read path parameters, query, headers and body in a handler.

Frontend + realtime

One service for a web surface

API routes, static frontend, SPA fallback, file responses, streaming, Server-Sent Events and WebSocket when supported.

Outbound

Call external HTTP APIs

Call a declared target with timeouts, TLS, concurrency limits and clearly typed results.

This is not one central HTTP server. Each application service owns the listener, routes and lifecycle of its own instance. An installed package never updates itself; a service explicitly adopts a package it has qualified.

How is CoAkka HTTP Runtime different from CoAkka Runtime?

CoAkka HTTP Runtime

Owns the HTTP edge: listener, protocol, route, body/stream, response, outbound HTTP, transport security, pressure and drain.

CoAkka Runtime

Owns named application work: target, Envelope, route snapshot, peer delivery, correlation, Deadletter and Data Lanes.

The application

Owns business handlers, authorization, serialization, database/downstream pools, idempotency, retry and user-facing errors.

Compose them when useful

An HTTP handler can call a CoAkka Runtime target and map its business outcome into an HTTP response. Each product keeps its own owner and failure contract.

browser/client
    ↓ HTTP request
CoAkka HTTP Runtime → app-host HTTP handler
                          ↓ optional named work
                     CoAkka Runtime target
                          ↓ business outcome
HTTP response ← app-host mapping
Are outbound HTTP and CoAkka HTTP Client the same product?

No. CoAkka HTTP Runtime currently provides outbound request APIs for the application's own service. CoAkka HTTP Client is a separate planned product; the Portal does not use that name for today's outbound surface.

The CoAkka HTTP Runtime companion product

An HTTP service runs without a browser tool. When a developer needs to see effective routes, metadata and OpenAPI without guessing from source, the service can expose a separate inspection surface for a local companion.

Browser · local development

CoAkka HTTP Runtime Inspect

coakka-http-runtime-inspect reads a bounded route/schema snapshot, projects OpenAPI 3.0.3 and sends real Route Try requests to a service that explicitly enabled authenticated inspection.

Explore HTTP Runtime Inspect

Separate boundary and platform scope. Inspect 2.3.0 embeds Core 2.3 and is available for macOS ARM64 and Linux ARM64. It differs from CoAkka Runtime Inspect, does not replace application authorization and must not be published through a proxy or port forward.

Shared product knowledge · Beginner

Start with one HTTP service in one process. You do not need HTTP/2, WebSocket, live reload or production monitoring to understand the first request.

1

Declare the service

Choose a listen address, method/path routes, handlers and suitable limits.

2

Start it

An invalid route, unavailable port or bad configuration returns an error before requests are accepted.

3

Receive a request

CoAkka HTTP Runtime selects the route and gives path, query, headers and body to the handler.

4

Run business logic

The handler validates input, authorizes access, calls a database or another service and chooses a result.

5

Respond and stop safely

The handler returns status, headers and body. Shutdown stops new requests and waits for active work.

Learn more · Responsibility boundaries
CoAkka HTTP Runtime
Accepts connections, reads HTTP, selects routes, applies limits, sends responses and stops the service.
Connector
Provides builders, requests, responses and errors in a natural language API.
Application
Owns handlers, authorization, data, business timeouts, retries and response content.
Deployment
Owns public ingress, DNS, certificates, firewall, replicas and the process-stop budget.

Choose a language to try it

What can you build?

API

An HTTP API with clear limits

Receive requests, run handlers and return responses in the same way across languages.

Web app

Frontend and backend together

Serve /api/*, assets, SPA fallback and files authorized by the application.

Realtime

Events and sessions

Send updates with SSE, WebSocket or response streams with clear reconnect and shutdown behavior.

Integration

Outbound HTTP

Call external APIs with timeouts, redirects, TLS, concurrency limits and application-owned retry.

Edge

HTTP at the outer boundary

Keep the public HTTP contract at the edge, then call a CoAkka Runtime target for distributed application work when needed.

Operations

An observable service

Check health, liveness, active configuration, current load and actionable failures.

Shared product knowledge · Advanced

Find the right feature guide →

Open only the task you need. Before using an advanced feature, check that the running package and platform support it.

Protocol and TLS/mTLS Choose an HTTP version, protect connections and manage certificates.

HTTP/1.1 is the starting point. HTTP/2 uses TLS over TCP; HTTP/3 uses TLS 1.3 over UDP. A standalone listener serves one version. Listener V1 serves all 3 over HTTPS on the same port for buffered requests and responses.

Choose between HTTP/1.1, HTTP/2 and HTTP/3 →

Run 3 focused labs → · Run all 3 on one port → · TLS/mTLS and certificates →

Body, upload and response streaming Receive large files or send a response in several parts.

Example: receive a large video in parts or send a long report without retaining it all in memory. Choose limits for bodies, multipart uploads and queued output; when a stream cannot write, wait for the appropriate signal.

Open the upload and streaming guide → · Resume a large upload → · Run the upload labs

Static frontend and file delivery Serve an SPA, assets and application-authorized files.

Example: serve an SPA at /, an API at /api/* and an invoice PDF only after the handler authorizes access. Place API routes before SPA fallback; the application decides which files are public.

Open the static frontend + file guide →

SSE and WebSocket Send realtime updates and handle reconnects.

Example: SSE sends one-way order updates, while WebSocket supports a two-way collaboration session. Limit each session and its queued output, and define reconnect/resume behavior.

Open the SSE + WebSocket guide →

Outbound HTTP Call external APIs with timeouts, TLS and concurrency limits.

Example: checkout calls a declared billing target instead of accepting an arbitrary URL from the request. The application chooses authorization, idempotency and retry; timeout does not prove the other API did no work.

Open the outbound HTTP guide →

Update routes while running Replace a handler without breaking requests already in progress.

Example: move a pricing route from handler v1 to v2 without changing its URL. Validate v2 before activation; active requests continue on v1 and new requests use v2 only after a successful update.

Open the route and handler update guide →

Monitoring and operations Check health, liveness, load and service failures.

Example: health feeds readiness, liveness checks that the service still progresses, and Monitor shows recent load and failures. Monitoring is disabled by default and stores no request body or credential.

Open the monitoring and operations guide →

Capacity and shutdown Limit load and stop the service without abandoning requests.

Example: checkout refuses early when enough requests are active instead of building an unbounded queue. During a rollout, stop new requests and wait for handlers; a close timeout means shutdown is not yet safe.

Open the capacity and shutdown guide → · Run the drain lab with a request in flight · See the VPS rollout guide

Failure modes must keep their meaning

Do not collapse every incident into one exception or generic HTTP 500. A stable category lets the application choose a response; structured facts let an operator fix the right owner.

Pressure
Finite capacity is full; back off, shed load or tune from evidence.
Limit
Input exceeds a configured item/byte ceiling; change the request or contract.
Timeout
A monotonic progress deadline expired; it does not prove a business effect did not happen.
Cancellation
The client, application or lifecycle cancelled owned work.
Closed
The service, stream or session accepts no new work.
Unsupported
The exact loaded package lacks a capability; change the target, package or configuration.
Application failure
A handler or downstream business operation failed; the application owns HTTP mapping.
Service failure
The listener or service owner entered a terminal error; preserve facts and follow the close law.

Current packages · 2.3.2

Find a package before upgrading

2.3 is the Core generation and 1 is the first connector revision on it. C/C++ and Go use SDK 2.3.0. SwiftPM resolves the published GitHub tag. Study lessons show the version used to verify their examples alongside the install command.

App hostPublic packagePrimary channelSurface
Node.js[email protected]npmJavaScript/TypeScript builder
Bun[email protected]npm through BunSeparate Bun package and host lifecycle
Pythoncoakka-http-runtime-python==2.3.2PyPIPython builder and explicit service lifetime
Java + Kotlin/JVMio.github.phuong-tran.coakka:coakka-http-runtime-jvm:2.3.2Maven CentralOne Kotlin-first, Java-friendly JVM connector
Gogithub.com/phuong-tran/coakka-http-runtime-go/[email protected]Go moduleGo builders, structs, errors and context
C# / .NETCoAkka.Http.Runtime 2.3.2NuGet.NET 8+
Swiftcoakka-http-runtime-swift 2.3.2SwiftPMSwift 6.0+
C/C++CoAkkaHttpHost 2.3.0 · public C ABI 10Versioned SDK + checksumC host API; C++ uses RAII over the same ABI

2.3.2 release notes and checksums

Scope platform claims to the exact tuple. The native SDK has five artifacts: Linux ARM64/x86-64, Windows ARM64/x64 and macOS ARM64; WSL2 uses the matching Linux artifact. Package presence does not prove protocol, TLS, filesystem or matching-host execution for every connector. Read capability bits and evidence for the exact package, OS and CPU.

Need the glossary, cheat sheet or troubleshooting?

Open the CoAkka HTTP Runtime Reference Desk → to choose a topic by task, interpret version/support claims and move from symptom to structured fact before choosing a language.

Study · Learn by language

This product page keeps the shared contract in one place. Each path covers only the installation, syntax, API and outcomes of its exact package; it does not redefine routing, pressure, security or shutdown.

Optional verification sources

The Portal is the primary learning and lookup surface. Use GitHub when you want full source, checksums or package layout.