Getting Started
Publish and consume your first event with Redelay in Go.
3 min readGuide
Go-only for the initial release. The Python and Node.js SDKs are in development — examples will appear here as soon as each SDK ships.
Prerequisites
- Go 1.25+
- Access to the Redelay GitHub repos — they are currently private, so you need a GitHub
account that has been granted access, SSH set up for GitHub, and
go env -w GOPRIVATE='github.com/redelay/*,github.com/flowdsl/*,github.com/FlowDSL/*,github.com/dreplyai/*'plusgit config --global url."git@github.com:".insteadOf "https://github.com/". Check withgit ls-remote git@github.com:redelay/go-framework.git HEAD.
No broker or database is needed for this page: the examples use the in-memory transport.
A full app adds MongoDB and picks Kafka / NATS / Redis with the TRANSPORT env var.
1. Install
2. Define an event
3. Publish
4. Consume
go run . prints Order: ord_1, total: 99.00.
Inside a framework app you don't build the bus yourself: blank-import
_ "github.com/redelay/go-events/module", set TRANSPORT=memory (or kafka / nats /
redis), publish through deps.EventBus from your module factory, and return consumers
from your module's Consumers() — the lifecycle module registers them and starts the bus.
Next steps
- Creating a Go App — a full app with auth, users, OpenAPI and the event bus
- Starter kit —
create-redelay-app.shscaffolds a versioned (Mode B) backend + admin - Core Concepts — Events
- FlowDSL Integration
- Distributed Scheduler
Was this page helpful?