Every cloud event, kept in order and delivered where it belongs.
Cloud Streams is an open source broker for CloudEvents. It stores every event your services publish, then delivers each one to the subscribers that want it: filtered, reshaped, retried until acknowledged, and replayable whenever you need it again.
The journey of an event
From the moment it's published to the moment a subscriber acknowledges it, an event goes through five steps, each of which you configure with resources.
Publish
Publishers post cloud events to a gateway over HTTP, or the gateway consumes them from Kafka, NATS, AMQP, the clouds or a PostgreSQL outbox.
How publish worksAdmit
The gateway checks who may publish what, validates events against the schema registry, and refuses the rest with a reason.
How admit worksStore
Admitted events are appended to the stream of their namespace in KurrentDB, in order, and indexed into partitions by source, subject or type.
How store worksFilter and transform
A broker reads the stream for each subscription, keeps the events its filter matches, and reshapes them with jq or a webhook.
How filter and transform worksDeliver
Events go to their subscriber, retried with backoff until acknowledged, signed if asked, in order where it matters, or set aside as dead letters.
How deliver works
Choose what each subscriber receives
A subscription's filter decides which events it delivers. Edit the filter, or pick an example, and watch which of these eight events would reach the subscriber. An attribute an event lacks is an error, so the filter checks for it with EXISTS.
3 of 8 events delivered
This runs a subset of CloudEvents SQL in your browser. Cloud Streams implements all of version 1.0 and passes its conformance tests: see Filters.
- order.placedorders.example.comsubject order-42region eusequence 1Delivered
- order.shippedorders.example.comsubject order-42region eusequence 2Delivered
- sensor.readingiot.example.comsubject thermostat-7Filtered out
- payment.capturedpayments.example.comsubject order-42region euFiltered out
- order.placedorders.example.comsubject order-43region ussequence 3Filtered out
- payment.failedpayments.example.comsubject order-43region usFiltered out
- sensor.alertiot.example.comsubject thermostat-7region ukFiltered out
- order.cancelledorders.example.comregion uksequence 4Delivered
Declared as resources, run by the platform
Subscriptions, gateways, brokers and sinks are resources, in the manner of Kubernetes objects. Keep them in Git, apply them with the tools you already use, and let Cloud Streams reconcile them.
A subscription, declared as a resource: applied with kubectl, the API, the dashboard or MCP.
apiVersion: cloud-streams.io/v1
kind: Subscription
metadata:
name: billing
namespace: orders
spec:
filter:
type: sql
sql: type LIKE 'order.%' AND region IN ('eu', 'uk')
mutation:
type: expression
expression: '${ .data |= del(.creditCard) }'
stream:
offset: 0 # deliver everything from the start, then keep up
subscriber:
endpoint: https://billing.example.com/events
deadLetter: {}Any HTTP client publishes: a cloud event, in structured mode, to the gateway.
curl -X POST http://localhost:8080/api/events/pub \
-H 'Content-Type: application/cloudevents+json' \
-d '{
"specversion": "1.0",
"id": "order-42-placed",
"source": "https://orders.example.com",
"type": "order.placed",
"region": "eu",
"data": { "total": 42 }
}'The kubectl plugin follows subscriptions, traces events and replays history.
kubectl cloud-streams get subscriptions -n orders # phase, lag and faulted offset
kubectl cloud-streams trace order-42-placed -n orders # what each subscription did with it
kubectl cloud-streams replay billing -n orders --from 2026-11-28T00:00:00Z
kubectl cloud-streams dead-letters billing -n ordersSpeaks the transports you already run
Credentials come from secrets or workload identity, never from addresses. The scheme of a subscriber's address selects its transport.
HTTP
- To
- webhooks and services
- From
- publishers posting to a gateway
Apache Kafka
- To
- topics
- From
- topics
NATS
- To
- subjects
- From
- subjects
AMQP
- To
- exchanges
- From
- queues
Amazon SQS
- To
- queues
- From
- queues
Amazon SNS
- To
- topics
Google Cloud Pub/Sub
- To
- topics
- From
- subscriptions
Azure Service Bus
- To
- queues and topics
- From
- queues and subscriptions
Knative
- To
- Services, Brokers and Channels
- From
- sources and triggers
PostgreSQL
- From
- outboxes and changes
Cloud Streams
- To
- other gateways, bridged over HTTP
Each transport's addresses, credentials and feeds are in the documentation.
Read about transports
Built for the day something goes wrong
- Replay from any point in time
- Events are kept, not consumed. Replay a subscription from the start, an offset or a date, to rebuild a read model or recover from a bad deploy.Learn more about replay from any point in time
- Dead letters, not dead ends
- An event a subscriber keeps refusing is set aside with its error, to inspect and redeliver once the subscriber is fixed.Learn more about dead letters, not dead ends
- Signed deliveries
- Deliveries carry Standard Webhooks signatures that subscribers verify with off-the-shelf libraries. Gateways verify publishers the same way.Learn more about signed deliveries
- Namespaces
- Tenants, teams and environments get their own streams, subscriptions, secrets and roles, on one deployment.Learn more about namespaces
- Kubernetes native
- Custom resources, an operator, a kubectl plugin, and lag metrics for an autoscaler to scale brokers on. Or run it anywhere with Docker.Learn more about kubernetes native
- Ask your agent
- An MCP server lets AI agents search and trace events and operate subscriptions, under the same roles as the API.Learn more about ask your agent
Running in two minutes
Docker Compose starts a gateway, a broker, KurrentDB and Redis, with the dashboard at http://localhost:8080.
git clone https://github.com/neuroglia-io/cloud-streams.git
cd cloud-streams
docker compose -f deployments/docker-compose/docker-compose.yml up --buildOn Kubernetes, install the chart and point it at your KurrentDB and Redis:
helm install cloud-streams oci://ghcr.io/neuroglia-io/charts/cloud-streams \
--set kurrentdb.connectionString='kurrentdb://kurrentdb:2113?tls=false' \
--set redis.connectionString='redis:6379'From the blog
- A new home for Cloud StreamsCloud Streams has a website, with its documentation, a filter playground and this blog.
- Cloud Streams 1.1A 202 Accepted response acknowledges an event again, unless a subscription opts in to deferred acknowledgements. Helm 4 upgrades work too.
- Cloud Streams 1.0Cloud Streams leaves beta. From now on, minor and patch releases never break the API, the resources, the configuration or the chart.