SCB-1111 fixed the demo starting error
1 file changed
tree: 1154d8c6ab1ce4e43c9e1213fdab14007a1956ef
  1. .github/
  2. acceptance-tests/
  3. alpha/
  4. demo/
  5. distribution/
  6. docker-build-config/
  7. docs/
  8. integration-tests/
  9. omega/
  10. pack-common/
  11. pack-contracts/
  12. persistence/
  13. scripts/
  14. web/
  15. .gitignore
  16. .travis.settings.xml
  17. .travis.yml
  21. gpg-sec.tar.enc
  23. NOTICE
  24. pom.xml

Pack | 中文 Build Status Coverage StatusMaven Central License Gitter

Apache ServiceComb Pack is an eventually data consistency solution for micro-service applications.


  • High availability. The coordinator is stateless and thus can have multiple instances.
  • High reliability. All transaction events are stored in database permanently.
  • High performance. Transaction events are reported to coordinator via gRPC and transaction payloads are serialized/deserialized by Kyro.
  • Low invasion. All you need to do is add 2-3 annotations and the corresponding compensate methods.
  • Easy to deploy. All components can boot via docker.
  • Support both forward(retry) and backward(compensate) recovery.
  • Easy to extend other coordination protocol which is based on the Pack, now we have Saga and TCC support out of box.


ServiceComb Pack is composed of alpha and omega.

  • The alpha plays as the coordinator. It is responsible for the management of transactions.
  • The omega plays as an agent inside the micro-service. It intercepts incoming/outgoing requests and reports transaction events to alpha.

The following diagram shows the relationships among alpha, omega and services. Pack Architecture

In this way, we can implement different coordination protocols, such as saga and TCC. See ServiceComb Pack Design for details.

Now we have different lanaguage implementation of Omega

Get Started

  • For ServiceComb Java Chassis application, please see Booking Demo for details.
  • For Spring applications, please see Booking Demo for details.
  • For Dubbo applications, please see Dubbo Demo for details.
  • For TCC with Spring application, please see Tcc Demo for details.
  • To debug the applications, please see Spring Demo Debugging for details.

Build and Run the tests from source

  • Build the source code and run the tests
       $ mvn clean install
  • Build the source demo docker images and run the accept tests
       $ mvn clean install -Pdemo,docker
  • Build the source code and docker images without running tests
       $ mvn clean install -DskipTests=true -Pdemo,docker
  • Current ServiceComb Pack code supports Spring Boot 1.x and Spring Boot 2.x at the same time, saga uses Spring Boot 1.x by default, you can use -Pspring-boot-2 to switch Spring Boot version to 2.x. Since Spring Boot supports JDK9 since 2.x, if you want to build and run test the Saga with JDK9 or JDK10, you need to use the spring-boot-2 profile.
       $ mvn clean install -Pdemo,docker,spring-boot-2

User Guide

How to build and use can refer to User Guide.

Get The Latest Release

Download Pack


Contact Us


See Pull Request Guide for details.

Stargazers over time

Stargazers over time


Licensed under an Apache 2.0 license.