Effective Microservice Communication and Conversation Patterns – Jimmy Bogard

Discover the secrets to effective microservice communication and conversation patterns, including distributed transactions, coordinators, NoSQL databases, outbox patterns, and sagas, with expert Jimmy Bogard.

Key takeaways
  • Distributed transactions can be complex and hard to manage in microservices architecture
  • Individual microservices may not be able to participate in a single transaction
  • Coordinators are necessary to manage distributed transactions
  • NoSQL databases may not support multi-document transactions
  • Transactions can fail if something goes wrong in the second phase of feedback
  • Business data and message brokers need to be included in a single transaction
  • Outbox patterns can be used to remember messages received and avoid duplicated operations
  • Sagas can be used to manage complex conversations between microservices
  • Operational transactional properties need to be considered when choosing a database
  • Distributed transactions can be difficult and expensive to implement