Real time
Stream processing in real time
Data arrived non-stop, and any delay reached the user straight away.
Under NDA
The company’s name and logo are under NDA. We left out the details that could identify it.
- No blocking
- a slow part does not hold up the stream
- Locally
- the system can be run and debugged on a laptop
- Traces
- you can see where a delay grows
The problem
Blocking calls in stream processing caused delays, and the system could only be debugged in the live environment.
What we did
01We removed blocking calls from stream processing, so one slow receiver no longer holds up the others.
02We built tools that feed a stream into the system straight from a developer’s machine, so debugging no longer needs the live environment.
03Every stage reports traces, metrics and latency alerts.
Result
A slow receiver no longer holds up the stream. Engineers run and debug the system locally, and the traces show where the time goes.
Technologies
- Go
- gRPC
- OpenTelemetry
Check your own system
Three questions on this topic. After each one, a short note on why it matters.
Is stream processing free of calls that can block all of it?
Why it matters
One slow receiver or one synchronous call stops the whole stream, and the user sees a pause.
Can an engineer run and debug the system locally, without the live environment?
Why it matters
If you can only debug in the live environment, every change is expensive and slow to check.
Do the traces show where the delay grows?
Why it matters
Without traces, a delay is hunted service by service, and that takes hours during an incident.
Looks like this part is in order
If you want someone to look at the rest of the system from the outside, write to us.
There is something to check
Incidents usually start in places like these. Write to us about how this part of your system works, and we will suggest what to check first.
This is worth looking at first
There are several weak spots, and the rest of the system probably has some too. Write to us, and we will work out what to fix first.
If your mail app did not open, here is the address: hello@infiniteloop.tech
Have a similar problem?
Write to us about what is going on. We reply within 2 business days.
More case studies
- Content Idempotent model calls: no repeat paid for, no call lost
- Subscriptions Paid content for paid subscriptions only
- CI/CD Every release reaches testers the same way, from any machine
- Reliability Multi-step operations across services
- Data Test databases without personal data
- Content delivery New content without a release: downloaded whole, read offline