Chapter 13 covered distributed transactions extensively. You now understand distributed transactions clearly, so you use them judiciously. To clarify it, you want to avoid distributed transactions as much as possible in the microservices world across partitions and domains. We do not say that distributed transactions should be deprecated completely in microservices architecture because there are areas where you want to use them by trading loose coupling for reliability; however, the essence is that you can do most of the design without actually using distributed transactions when cross-partitions and cross-domains are involved. You will examine how to do this in detail in this chapter. The examples in this chapter are a continuation of the examples from Chapter 13 , so you may want to make sure that you understand that chapter before you attempt to run the examples in this chapter.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Transactions and Microservices

  • Binildas Christudas,
  • Tarun Telang

摘要

Chapter 13 covered distributed transactions extensively. You now understand distributed transactions clearly, so you use them judiciously. To clarify it, you want to avoid distributed transactions as much as possible in the microservices world across partitions and domains. We do not say that distributed transactions should be deprecated completely in microservices architecture because there are areas where you want to use them by trading loose coupling for reliability; however, the essence is that you can do most of the design without actually using distributed transactions when cross-partitions and cross-domains are involved. You will examine how to do this in detail in this chapter. The examples in this chapter are a continuation of the examples from Chapter 13 , so you may want to make sure that you understand that chapter before you attempt to run the examples in this chapter.