# apache/incubator-seata-samples

Apache Seata(incubating) Samples for Java

Repository: https://github.com/apache/incubator-seata-samples
Canonical: https://ross.abutalabs.com/products/incubator-seata-samples
Homepage: https://seata.apache.org/
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-07-27T02:22:00+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 2773, "days_push": 38, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2357, forks 1949 (observed 2026-08-28T04:06:40.672726+00:00)

## What it is
A collection of sample applications demonstrating Apache Seata (incubating), an open-source distributed transaction solution for microservices architectures. The repository provides runnable Java examples for Seata's AT, TCC, SAGA, and XA transaction modes, integrated with frameworks like Spring, Spring Cloud, Nacos, ZooKeeper, and Dubbo.

## Use cases
- learn how to use seata for distributed transactions
- example of AT mode auto compensation transactions in spring boot
- how to run a seata TCC sample with spring cloud
- saga long transaction example with seata
- XA transaction sample for MySQL with seata
- integrate seata with nacos and dubbo microservices
- sample code for distributed transaction rollback in java

## When to choose
- you are evaluating or learning Seata and want runnable reference code for AT, TCC, SAGA, or XA modes
- you need a starting template for wiring Seata into Spring, Spring Cloud, Dubbo, or Nacos-based microservices
- you want to see the canonical account/order/storage/business demo flow for distributed transactions

## When to avoid
- you need the Seata transaction coordinator or client libraries themselves - use the main apache/seata repository
- you need production-ready transaction middleware rather than example code
- you work outside the JVM ecosystem, since all samples are Java

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, middleware
- domain: microservices, databases, developer-tools, tutorials
- platform: jvm, cross-platform
- tags: distributed-transactions, seata, samples, at-mode, tcc, saga, xa, spring, spring-cloud, dubbo, microservices

## Member repositories
- apache/incubator-seata-samples (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.672726+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:36:16.118457+00:00, confidence not recorded.
  - readme: https://github.com/apache/incubator-seata-samples (fetched 2026-08-28T04:06:40.672726+00:00, sha 44f4c43643f1)
  - homepage: https://seata.apache.org/ (fetched 2026-08-29T10:17:01.799116+00:00, sha 3a6f011d2deb)
  - site_page: https://seata.apache.org/docs/overview/what-is-seata (fetched 2026-08-29T10:17:01.808647+00:00, sha 9db1f8caa33c)
  - site_page: https://seata.apache.org/docs/next/overview/what-is-seata (fetched 2026-08-29T10:17:01.810824+00:00, sha 4d37536771a1)
  - site_page: https://seata.apache.org/docs/v2.5/overview/what-is-seata (fetched 2026-08-29T10:17:01.812842+00:00, sha 013478e82374)
  - site_page: https://seata.apache.org/docs/v2.4/overview/what-is-seata (fetched 2026-08-29T10:17:01.815053+00:00, sha 17655e7efc70)
  - site_page: https://seata.apache.org/docs/v2.3/overview/what-is-seata (fetched 2026-08-29T10:17:01.816960+00:00, sha 493b39c4f36e)
  - site_page: https://seata.apache.org/docs/v2.2/overview/what-is-seata (fetched 2026-08-29T10:17:01.818654+00:00, sha f9a916924afd)
  - site_page: https://seata.apache.org/docs/v2.1/overview/what-is-seata (fetched 2026-08-29T10:17:01.820345+00:00, sha 382327f1398b)
  - site_page: https://seata.apache.org/docs/v2.0/overview/what-is-seata (fetched 2026-08-29T10:17:01.821895+00:00, sha 8fd757165c21)
- Data as of 2026-08-30T08:39:29.467469+00:00.
