# prontera/spring-cloud-rest-tcc

以Spring Cloud Netflix作为服务治理基础, 展示基于tcc思想所实现的分布式事务解决方案

Repository: https://github.com/prontera/spring-cloud-rest-tcc
Canonical: https://ross.abutalabs.com/products/spring-cloud-rest-tcc
Language: Java
License Family: other
Topics: spring-cloud, spring-boot, microservice, try-confirm-cancel, tcc, spring-cloud-netflix, distributed-transaction, c4-diagram, c4model
Last push: 2020-02-08T16:51:37+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3925, "days_push": 2398, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2539, forks 1178 (observed 2026-08-28T04:06:59.311572+00:00)

## What it is
A Java demo project built on Spring Cloud Netflix that illustrates a distributed transaction solution based on the TCC (Try-Confirm-Cancel) pattern, presented as a 'TCD' variant with Try-Confirm-Diagnose flow. It includes an Order/Account/Product microservice scenario with coordinator and lazy participant roles, C4 model diagrams, and Docker-based MySQL setup.

## Use cases
- learn how to implement TCC distributed transactions in microservices
- see a Spring Cloud Netflix example of try-confirm-cancel transactions
- understand how to handle eventual consistency across microservices
- study a TCC coordinator and participant reference implementation
- explore C4 model diagrams for a distributed transaction system
- find an alternative to 2PC for microservice transactions

## When to choose
- you want a worked example of TCC/TCD transactions on Spring Cloud
- you need to learn distributed transaction patterns with idempotency and conflict diagnosis
- you prefer a white-box coordinator embedded in business services over a separate transaction coordinator

## When to avoid
- you need a production-ready, actively maintained distributed transaction library
- you require a license-compliant dependency (no license is provided)
- you use non-JVM stacks or need protocol-agnostic middleware
- you want a reusable black-box transaction coordinator service

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: microservices, workflow-automation, http-server, database, developer-tools
- domain: microservices, backend, developer-tools, tutorials
- platform: jvm, self-hosted
- tags: tcc, distributed-transactions, spring-cloud-netflix, try-confirm-cancel, c4-model, saga-pattern, educational-demo, docker

## Member repositories
- prontera/spring-cloud-rest-tcc (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:59.311572+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:25:10.282981+00:00, confidence not recorded.
  - readme: https://github.com/prontera/spring-cloud-rest-tcc (fetched 2026-08-28T04:06:59.311572+00:00, sha 54b5116919d8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
