© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
H. F. Oliveira RochaPractical Event-Driven Microservices Architecturehttps://doi.org/10.1007/978-1-4842-7468-2_6

6. Dealing with Concurrency and Out-of-Order Messages

Hugo Filipe Oliveira Rocha1  
(1)
Ermesinde, Portugal
 
This chapter covers:
  • Why tackling concurrency in a monolithic application is different than tackling it in a distributed microservice architecture

  • The impacts of concurrency in distributed event-driven services

  • The differences between pessimistic and optimistic concurrency and when to use each

  • How to apply pessimistic and optimistic concurrency strategies

  • Using event versioning to handle out-of-order messages

  • Applying end-to-end partitioning to ...

Get Practical Event-Driven Microservices Architecture: Building Sustainable and Highly Scalable Event-Driven Microservices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.