The request/reply section is the part teams underestimate. In practice the temporary reply queue needs a correlation ID, a timeout, and a dead-letter path, or a slow backend turns into a hung HTTP call. I keep the sync API at the edge with APIM and let the messaging stay async behind it. That split has held up better than trying to make the broker act like an API.
Microservices + Event-Driven Architecture (EDA): The Perfect Match for Scalable System
2 Comments
@[manojkagitha] ,
You're spot on. In practice, how that timeout and correlation handling behaves really depends on the end-to-end flow:
REST at the edge (Client → REST → Microservice → Broker → Backend): Here, the client controls the HTTP timeout. If the backend stalls, the client drops the connection, so the microservice just needs to align its internal reply timeout with that HTTP window and clean up the temporary queue so threads aren't left hanging.
Async all the way (Client → MQTT → Broker → Microservice → Broker → Backend): Since the entire chain runs over persistent async connections, there's no HTTP call to hang. The requester still spins up a temporary reply queue with a correlation ID before publishing, and handles timeouts gracefully via an async callback or error event rather than blocking a thread.
Either way, explicitly tying the temporary queue lifecycle to a timeout and correlation ID is what keeps the pattern from turning into a bottleneck when things slow down.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
A dedicated tech evangelist and a Top 10 Software Engineering Writer on HackerNoon, Stephen shares practical insights on advanced event-driven design patterns, Event Governance, AsyncAPI, and observability. He is the author of Rethinking OpenTelemetry Tail-Based Sampling, where he explores scalable distributed tracing strategies for modern enterprise systems. His core specialties include TOGAF® Enterprise Architecture, Solace PubSub+, Apache Kafka, and OpenTelemetry. Show less
More From Stephen
Related Jobs
- Senior BSP/OS Software System Integrator Safety-Critical Systems (f/m/x)BMW Group · Full time · Germany
- Software Systems Engineer - III/JavaScript developerAmNet Services · Full time · Ashburn, VA
- Software Systems Engineer - III/Node JS developerAmNet Services · Full time · Trenton, NJ
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!