Coder Social home page Coder Social logo

paddx02 / incubator-servicecomb-saga Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/servicecomb-pack

0.0 1.0 0.0 2.71 MB

Apache ServiceComb Saga (Incubating)

Home Page: https://servicecomb.apache.org/

License: Apache License 2.0

Java 97.55% Gherkin 1.59% Shell 0.87%

incubator-servicecomb-saga's Introduction

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.

Contact Us

Contributing

See Pull Request Guide for details.

License

Licensed under an Apache 2.0 license.

incubator-servicecomb-saga's People

Contributors

asifdxtreme avatar candoit2016 avatar chanjarster avatar cloveryl avatar cmonkey avatar crystaldust avatar david0825 avatar eric-lee-ltk avatar eumji025 avatar geektjs avatar holy12345 avatar lijasonvip avatar lium200309 avatar liuzhenyang avatar lockerzhang avatar mabingo avatar mcqueen64 avatar seanyinx avatar smiletomyself avatar smiley-yoyo avatar tanktian avatar venjiang avatar wangwei0906 avatar willemjiang avatar yangbor avatar yetiea avatar zhang2014 avatar zhfeng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.