Duplicate alerts
Symptom Customers got two Slack messages per alert.
Cause Two ECS containers; a plain subscription delivers every event to every subscriber.
Fix A JetStream queue group, so each event goes to exactly one container.
Work / Case study 01
A logging, search and alerting platform for developers who don't have a platform team — designed so customer apps never wait on storage.
01 — The problem
A solo developer or a small startup just wants to send logs, search them, and get a message when something breaks. Instead they get agents to install, YAML to maintain, and per-host billing that's hard to predict.
NotLogs takes the opposite approach: one SDK call to start, flat INR pricing, and an architecture that stays fast and cheap to run. Three constraints shaped every decision:
02 — The approach
The tempting design inserts each batch straight into the database — which couples every customer's response time to the slowest insert. Instead the API does three cheap checks, hands the batch to a durable queue, and answers 200. Watch one log travel the write path:
Logs are batched in memory and posted over HTTPS. WAF drops abusive IPs before they reach a server.
The load balancer routes to the NestJS API on ECS Fargate.
Key and quota checked, batch published to NATS, 200 returned. The customer app is free.
JetStream keeps the message on disk until a worker takes it.
Inserts into ClickHouse, bumps usage counters, feeds alerts and live tail.
level:error search:timeout — ClickHouse answers from stored rows.
03 — Decisions in numbers
04 — The product





05 — What broke, and the fix
Symptom Customers got two Slack messages per alert.
Cause Two ECS containers; a plain subscription delivers every event to every subscriber.
Fix A JetStream queue group, so each event goes to exactly one container.
Symptom ClickHouse errors under load.
Cause One INSERT per log creates thousands of tiny data parts.
Fix async_insert with a 10 MB / 500 ms buffer.
Symptom The Razorpay popup kept reopening.
Cause useSearchParams without a Suspense boundary; re-renders retriggered checkout.
Fix Suspense, plus a useRef guard on the auto-trigger.
06 — Honest gaps & what's next
Have something like this in mind?