Your distributed transactions are broken. You just don't know it yet.
Payment charged ✓ → Inventory reserved ✓ → Shipping... timeout.
Now what?
Built saga-axon — a DAG-based saga orchestrator for Go:
⚡ Parallel step execution (not linear chains)
🔄 Auto-compensation of ALL succeeded steps on failure
🧠 Split idempotency — no stuck sagas, ever
⏱️ Timeout monitoring with synthetic failure injection
💾 Crash recovery via CQRS event replay
🚨 27 documented failure scenarios
Pluggable broker, state store, event logger. MIT licensed.
go get https://t.co/cnTb6YIP0r
GitHub :
https://t.co/h8kphUnS7Y
#golang #distributedsystems #opensource
goRabbit-axon v2.0.0 — self-healing RabbitMQ connections in Go 🐰🔄
connection dies → circuit breaker → exponential backoff → auto-reconnect → channels re-acquired from pool
no panics. no orphaned goroutines. no silent message loss.
we kill the broker mid-operation in integration tests and it recovers cleanly.
go get https://t.co/dThWHgh4Le
#golang #rabbitmq #opensource
Building microservices can be challenging, especially when dealing with failures. Consider this scenario: Service A succeeds, but Service B fails. What do you do? Rely on manual rollback scripts at 2 AM?
When you have three parallel tasks that need to finish before moving to the next step, who is tracking that? And when you ask, "Where is my transaction right now?" the answer is often unclear because the state is scattered across multiple services.
Many of us have patched this issue with custom if/else managers, retry loops, and hope. But what if you could define the entire distributed transaction in just five lines?
Imagine if payment fails after inventory is reserved. The engine walks the graph backwards and automatically triggers every compensation.
No sidecar, no JVM, no YAML complexities—just a Go binary.
This solution supports any broker (RabbitMQ, Kafka, SQS) and any language for workers (Go, Python, Node) as long as they follow a four-field JSON contract. State is tracked in Redis(AOF), events are logged to Kafka (for CQRS), and there's automatic parallel fan-out/fan-in.
Introducing saga-axon—coming soon.
wire-axon = axios + zod + tanstack query + redux toolkit
but the glue is the point
branded types · auth strategies · retry with jitter · middleware pipeline · request cancellation · 4 hooks
the HTTP layer I always wanted to reach for
built by @srajansaxena
built wire-axon — a type-safe HTTP client for React where invalid requests are impossible at compile time
not "harder to make" — literally impossible
here's how it works 🧵
https://t.co/NdCiZUMokW
built-in retry engine with exponential backoff
delay = min(baseDelay * backoffFactor^attempt ± 25% jitter, maxDelay)
the jitter is not optional decoration
without it — all clients retry in sync and hammer the server together
thundering herd. jitter kills it
auth is a strategy pattern — not baked in
3 strategies ship out of the box:
→ BearerTokenStrategy — attaches JWT on every request
→ RefreshTokenStrategy — handles 401, queues concurrent requests, replays with new token. one refresh call. ever.
→ CookieStrategy — httpOnly cookies, sets withCredentials
swap one line to change auth behaviour
every request flows through a validation pipeline
raw string
→ Zod schema.safeParse()
→ branded type
→ BaseApiService.get/post/patch/delete
→ retryEngine
→ axios
strict schemas. no extra keys. wrong config = thrown error before the network is ever touched
the core idea: a raw string should never reach your HTTP layer
wire-axon uses branded types
const url: ValidatedUrl = '/api/users' // ❌ TS error
const url: ValidatedUrl = validate('/api') // ✅ only way through
if it doesn't pass Zod — it never becomes a request
What relay-axon handles so you don't:
→ 5 requests get 401 simultaneously? 1 refresh call. Others queue. All replay.
→ Retry with exponential backoff + jitter. No thundering herd.
→ Request deduplication. Same GET fired 3x? 1 network call.
→ Auth strategy = 1 line. Bearer, Cookie, Refresh. Swap anytime.
→ Compile-time validated requests. Not runtime. Compile-time.
Type-safe. Framework-agnostic. Open source.
From the same ecosystem as zodex-axon, gql-axon, rabbit-axon, and redis-axon.
👇 If you've debugged infinite 401 loops — this one's for you.
Every frontend dev has written this at 2 AM:
if (error.response.status === 401) {
const newToken = await refreshToken();
error.config.headers['Authorization'] = `Bearer ${newToken}`;
return axios(error.config);
// TODO: handle race conditions
// TODO: what if 5 requests fail at once
// TODO: why is the user getting logged out randomly
}
I spent 3 weeks making sure you never write this again.
Swappable auth strategies. Request queuing. Retry with backoff. Branded type validation. Zero race conditions.
The next library in the axon ecosystem is coming.
🔥 relay-axon — dropping soon.
As a creator of Zodex-Axon, one of the brilliant libraries of express i have ever seen i.e a compile-time middleware, I was thinking for the past few weeks. I have created Zodex-Axon but people might feel some difficulty implementing it so should I create a video kind of something for that?
I was thinking for the past few weeks, "Okay I have created gql-axon but it's a little bit cumbersome to just read and try to implement so should I just post a video of its implementation in your code"