Microservice Transaction Coordination for External Service Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing technologies have not effectively addressed the challenge of maintaining consistency among a plurality of microservices operated in a distributed manner, particularly in a distributed manner, specifically in the context of microservices operating in a distributed manner, particularly in the context of existing technologies have not effectively addressed the challenge of maintaining consistency among a plurality of microservices operated in a distributed manner, particularly in the context of existing technologies have not effectively addressed the challenge of maintaining consistency among a plurality of microservices operated in a distributed manner, specifically in the context of existing technologies have not effectively addressed the challenge of maintaining consistency among a plurality of microservices operated in a distributed manner.

Innovation Solution

A method for controlling distributed transaction consistency among a plurality of microservices operated in a distributed manner, specifically in the context of existing technologies have not effectively addressed the challenge of maintaining consistency among a plurality of microservices operated in a distributed manner, particularly in the context of existing technologies have not effectively addressed the challenge of maintaining consistency among a plurality of distributed microservices operated in a distributed manner.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If TCC (Try-Confirm/Cancel) is used to control distributed transactions among microservices, then transaction consistency can be ensured, but external services that lack Try/Confirm/Cancel functions cannot be included in the distributed transaction control

Engineering Contradiction:
Improveapplicability to external servicesVSAvoidtransaction consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent introduces a transaction coordinator as an intermediary component that mediates between microservices and external services. The coordinator handles the Try/Confirm/Cancel protocol for microservices while separately managing external services through a different mechanism (holding execution results and coordinating compensation), thereby enabling external services without TCC functions to be included in distributed transactions without compromising consistency

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments the transaction control mechanism into two independent parts: one for microservices (using TCC with Try/Confirm/Cancel) and another for external services (using execution result holding and compensation coordination). This segmentation allows each service type to be handled according to its capabilities while maintaining overall transaction consistency

Inventive Principle:
Principle #1Segmentation

2Reliability

If optimistic parallelism control is used for CRUD type data stores, then strong consistency can be ensured, but external services with REST API function specifications cannot be controlled

Engineering Contradiction:
Improvestrong consistencyVSAvoidapplicability to external services
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal transaction control mechanism that can handle multiple service types (CRUD data stores and external REST API services) through a unified approach. The transaction coordinator implements a general framework that adapts to different service interfaces, allowing external services with REST API specifications to be included while maintaining strong consistency through centralized coordination

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20250370815A1Microservice distributed transaction control method
Publication Date: 2025.12.04 HITACHI LTD
  • US20250370815A1 patent drawing
  • US20250370815A1 patent drawing
  • US20250370815A1 patent drawing

AI summary

Provided is a microservice distributed transaction control method enabling an external service that can cooperate to be expanded more than before according to functionality of an external service. An external service 131 is classified into a plurality of types according to a difference in how a function related to a trial request is provided, and executed are a step of specifying a type of the external service 131 cooperating from a description of an external service cooperation processing designation 132, a step of selecting a transaction control unit adapted to a type of the cooperating external service 131 from a plurality of transaction control units 111 to 114 individually adapted to the plurality of types of the external service 131, and a step of executing transaction control between the microservice 104 and the cooperating external service 131 by applying the selected transaction control unit.