Saga 0.1.0 Release
SCB-404 Use different base folder for source and binary package
2 files changed
tree: 31f68aa96931e15841ae8b9ebbb8c9306867be0c
  1. .github/
  2. .gitignore
  3. .travis.settings.xml
  4. .travis.yml
  5. DISCLAIMER
  6. LICENSE
  7. NOTICE
  8. README.md
  9. README_ZH.md
  10. acceptance-tests/
  11. alpha/
  12. docker-build-config/
  13. docs/
  14. gpg-sec.tar.enc
  15. integration-tests/
  16. omega/
  17. pack-common/
  18. pack-contracts/
  19. pom.xml
  20. saga-demo/
  21. saga-distribution/
  22. saga-persistence/
  23. 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

See Booking Demo for details.

User Guide

How to build and use can refer to User Guide.

FAQ

Contact Us

Contributing

See Pull Request Guide for details.

License

Licensed under an Apache 2.0 license.