[Blog post for developers] Using Delayed Delivery Queues in Your Event Mesh to Implement Timers

Options
hong
hong Guest Posts: 480 ✭✭✭✭✭
edited August 2021 in Blogs & Tutorials #1

When building an application using a microservices architecture, it is much easier to horizontally scale those microservices – i.e, adding more service instances on demand – when those microservices are stateless. However, implementing timers can be a challenge. How can you “set aside” an event to be processed later, perhaps by a different instance of the microservice, without storing processing state in the microservice? The answer is to use a delayed delivery queue in your event mesh.

In this blog post, Steve Buchko, Solace’s VP of Product Management, Core Products, explores two scenarios in an e-commerce application example where delayed delivery queues really come in handy:

  1. Retrying processing after a time delay. I’ll use a credit card purchase authorization in an e-commerce application to illustrate this use case.
  2. One event, published to the event mesh, processed by different microservices at different times

Read the whole blog post here.

Have questions and comments about the blog post? Leave them below.