Coder Social home page Coder Social logo

servicecomb-saga's Introduction

Saga Build Status Coverage Status License

Purpose

Saga is a type of Compensating Transaction pattern, which provides a simple way to help users solve the data consistency problems encountered in micro-service applications.

Documentation

Reference documentation is available on the ServiceComb website.

Major Architecture of Saga

  • saga-core(transaction and compensation handling logic)
  • saga-format(data serialization and deserialization)
  • saga-transports(communication protocol implementation such as rest or rpc in the future)
  • saga-discovery(service discovery)
  • saga-spring(restful service framework)

Saga

Prerequisites

You will need:

  1. Oracle JDK 1.8+
  2. Maven 3.x
  3. Docker
  4. MySQL
  5. Service Center(optional)
  6. Docker compose(optional)
  7. Docker machine(optional)

Building

Download the source code.

git clone https://github.com/ServiceComb/saga.git

Enter the Saga root directory,biuld Saga project by maven command and generate a docker image named saga-spring in local.

mvn package -DskipTests -Pdocker

Run Services

A docker-compose.yaml file is provided to start Saga services and its dependencies(Service center and Mysql) as docker containers. User also can configure specified Service center or Mysql in docker-compose.yaml.

Enter the Saga root directory, run all service images using command,

docker-compose up

Reference API

See Saga API for details.

Example

See Saga demo for details.

Contact

Bugs: issues.

Mailing lists: users , developers

Contributing

See Pull Request Guide for details.

Reporting Issues

See reporting bugs for details about reporting any issues.

servicecomb-saga's People

Contributors

seanyinx avatar mabingo avatar geektjs avatar tanktian avatar david0825 avatar willemjiang avatar eric-lee-ltk avatar lockerzhang avatar zhang2014 avatar

Watchers

James Cloos 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.