Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
Programming

/

Back-end

Understanding Distributed Transactions through Order Systems

Learn about consistency issues encountered in MSA environments and their solutions.

(5.0) 6 reviews

182 learners

  • 169developer9973
실습 중심
분산트랜잭션
동시성이슈
MSA

Reviews from Early Learners

What you will learn!

  • MSA Environment Transaction Control

  • Distributed Transaction

Transitioning from Monolithic to MSA and Distributed Transactions

As services grow and become more complex, many companies are considering transitioning from their existing monolithic architecture to microservice architecture (MSA). MSA is a modern architecture that guarantees independence and scalability between services, and enables rapid development and deployment, flexible failure response, etc. However, there is an important challenge that must be addressed in this transition. It is the issue of transaction consistency and integrity .

In a monolithic environment, transaction management was relatively simple because all processing could be performed within a single database and transaction boundary. Data from various domains, such as orders, payments, and inventory, were bundled into a single transaction and processed consistently. However, when switching to MSA, each domain was separated into an independent service and a separate database, and it became difficult to guarantee data consistency with the existing transaction processing method .

In this lecture, we will learn about the distributed transaction patterns 2PC, TCC, and SAGA to solve transaction problems in MSA environment that cannot be solved by a single transaction.

In particular, this lecture goes beyond simple theoretical explanations, and starts from a Monolithic structure centered on ordering services, transitions to an MSA environment, and explains what problems actually occur and how to solve them through each pattern, with specific flowcharts, example codes, and practical application tips.

After class

  • Understand transactional issues that arise when migrating from Monolithic to MSA.

  • You will learn about the structure, pros and cons, and considerations for application of each distributed transaction pattern.

  • You will learn design strategies to ensure transaction consistency in practice.

  • Concurrency control can be achieved using Lock.


Things to note before taking the class

Practice environment

  • The lecture will be based on MacOS. If you have a Windows machine and Docker is installed, you can mostly follow along.

  • I use IntelliJ.

Player Knowledge

  • Spring

  • JPA


Note

  • This lecture is not about creating an ordering system, but rather about distributed transactions that are utilized in an MSA environment using a very simple ordering system as an example .

    • For example, it does not cover features such as payments using Payments that can be used for ordering.

  • Some lectures (about SAGA patterns) are scheduled to open in August, and the lecture prices may change after the content is added.

Recommended for
these people

Who is this course right for?

  • A person pondering how to ensure consistency across multiple services.

  • Someone contemplating how to manage transactions in an MSA environment

Need to know before starting?

  • Spring

  • JPA

Hello
This is

5,537

Learners

424

Reviews

295

Answers

4.8

Rating

3

Courses

안녕하세요. 지식공유자 최상용입니다.

많은 오픈소스에 기여한 경험이 있는 현직 백엔드 개발자입니다.

- Spring Data Mongo Contributor
- querydsl Contributor
- grpc-kotlin Contributor
- ksp Contributor
- mybatis Contributor

Curriculum

All

45 lectures ∙ (5hr 37min)

Published: 
Last updated: 

Reviews

All

6 reviews

5.0

6 reviews

  • jiheon22344564님의 프로필 이미지
    jiheon22344564

    Reviews 4

    Average Rating 5.0

    5

    100% enrolled

    Disadvantages: No examples provided, so if you make a coding mistake, you'll have to spend a long time debugging Advantages: Everything else

    • shortcoding님의 프로필 이미지
      shortcoding

      Reviews 9

      Average Rating 5.0

      5

      31% enrolled

      A trusted god-tier lecture

      • eedys12341972님의 프로필 이미지
        eedys12341972

        Reviews 1

        Average Rating 5.0

        5

        62% enrolled

        • hwan202028583님의 프로필 이미지
          hwan202028583

          Reviews 6

          Average Rating 5.0

          5

          79% enrolled

          The explanations and example code are so clean and great! I can't wait to see the SAGA pattern too!

          • perfectgame님의 프로필 이미지
            perfectgame

            Reviews 7

            Average Rating 5.0

            5

            86% enrolled

            This easily explains various knowledge for maintaining data consistency in distributed systems, which is gradually becoming a basic requirement.

            $30.80

            169developer9973's other courses

            Check out other courses by the instructor!

            Similar courses

            Explore other courses in the same field!