publish over HTTP, deliver instantly over WebSocket, EventSource or long polling
Nchan is an open source publish and subscribe server built as a module for nginx. Your application publishes a message to a named channel with an ordinary HTTP request, and Nchan delivers it immediately to every client subscribed to that channel over WebSocket, EventSource (also known as Server Sent Events) or long polling, whichever the client asks for. Because the delivery layer is nginx itself, a single modest instance holds a very large number of idle connections, and your application never has to keep a real time connection open. It suits live dashboards, notifications, activity feeds, chat, collaborative editing, job progress updates and any place you want to push data to a browser or mobile client without polling.
cloudimg ships Nchan as a complete, working message server rather than a module you still have to compile and configure: a publisher endpoint, a subscriber endpoint serving all three transports, a loopback only statistics endpoint and a health endpoint are already wired up. Nchan ships nothing authenticated, so both the publisher and subscriber endpoints are placed behind a credential generated uniquely on each instance's first boot and never baked into the image, and the statistics endpoint is restricted to the instance itself. A bundled self test publishes a message and confirms delivery across all three transports, and nginx and the Nchan module are ordinary distribution packages kept current by normal security updates with nothing pinned. Backed by a paired deployment guide and 24/7 cloudimg support.
This is a repackaged open source software product wherein additional charges apply for cloudimg support services.
## Nchan - Production-Ready Publish and Subscribe Message Server AMI
Nchan is an open source publish and subscribe server built as a module for nginx. Your application publishes a message to a named channel with an ordinary HTTP POST, and Nchan delivers it immediately to every connected client over WebSocket, EventSource (Server-Sent Events), or long polling - whichever the client requests. Because the delivery layer is nginx itself, a single instance holds a very large number of idle connections while your application never maintains a persistent real-time socket.
This AMI delivers a complete, working message server within minutes of launch - not a module you still have to compile and configure.
## Who This Is For
## Why This AMI Over a Manual Install
Instant time-to-value: A wired-up, hardened pub/sub server the moment the instance boots. No source build, no module/ABI juggling, no per-location configuration required.
Secure where the software is not: Nchan endpoints are unauthenticated by default, meaning an open publisher lets anyone inject messages into any channel and an open subscriber leaks every message. This image puts both endpoints behind a credential generated uniquely on each instance's first boot - never baked into the image - so no two instances share one. The statistics endpoint is restricted to loopback only.
Proven, not merely listening: A bundled self-test command publishes a message and confirms delivery across all three transports, so you can verify end-to-end function at any time.
## Application Stack
## Preconfigured Defaults
## Security Posture
## Deployment Quickstart
1. Launch the AMI on an m5.large or larger EC2 instance
2. Open port 80 in your security group (and port 22 for SSH)
3. SSH in and read /root/nchan-info.txt for this instance's publisher credential and endpoints
4. Publish a message: POST http://your-instance-ip/pub/channel-name with basic auth
5. Subscribe over WebSocket, EventSource, or long polling: GET http://your-instance-ip/sub/channel-name with basic auth
6. Run sudo /usr/local/sbin/nchan-selftest to confirm end-to-end delivery
## Get Started Quickly
Need help integrating TLS termination, replacing basic-auth with your application's authorization layer, or tuning retention for your workload? cloudimg support is available 24/7 to help you go from launch to production as quickly as possible.
## About Nchan Upstream
Nchan is a mature, actively maintained project. The most recent upstream release is version 1.3.8 (February 2026), following version 1.3.7 (September 2024). This AMI ships version 1.3.6 as packaged and security-maintained by the underlying Linux distribution.
## About cloudimg
cloudimg publishes and maintains production-ready images across AWS and Azure Marketplace, built from a hardened, fully patched base and backed by 24/7 engineering support.
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.