Saga 0.2.1 Release
Removed Disclaim file and incubating name from artifacts
2 files changed
tree: 677b6cdbf6f55b44e9bd5b926884b84adab3a274
  1. .github/
  2. .gitignore
  3. .travis.settings.xml
  4. .travis.yml
  5. CONTRIBUTING.md
  6. FAQ.md
  7. FAQ_ZH.md
  8. LICENSE
  9. NOTICE
  10. README.md
  11. README_ZH.md
  12. acceptance-tests/
  13. alpha/
  14. docker-build-config/
  15. docs/
  16. gpg-sec.tar.enc
  17. integration-tests/
  18. omega/
  19. pack-common/
  20. pack-contracts/
  21. pom.xml
  22. saga-demo/
  23. saga-distribution/
  24. saga-persistence/
  25. scripts/
README.md

Saga | 中文 Build Status Coverage Status License

Apache ServiceComb (incubating) Saga is an eventually data consistency solution for micro-service applications. Transactions are commited directly in the try phase and compensated in reverse order in the rollback phase comparing to TCC.

Features

  • 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.

Architecture

Saga 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. Saga Pack Architecture

See Saga Pack Design for details.

Get Started

  • For Spring Cloud applications, please see Booking Demo for details.
  • For Dubbo applications, please see Dubbo Demo for details.

Build and Run the tests from source

  • Build the source demo docker image and run all tests
       $ mvn clean install -Pdemo,docker
    
  • Current Saga 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 Saga

FAQ

Contact Us

Contributing

See Pull Request Guide for details.

License

Licensed under an Apache 2.0 license.