Saga::Core

Eventual consistency component for distributed systems

License

License

GroupId

GroupId

org.apache.servicecomb.saga
ArtifactId

ArtifactId

saga-core
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

Saga::Core
Eventual consistency component for distributed systems
Project Organization

Project Organization

The Apache Software Foundation

Download saga-core

How to add to project

<!-- https://jarcasting.com/artifacts/org.apache.servicecomb.saga/saga-core/ -->
<dependency>
    <groupId>org.apache.servicecomb.saga</groupId>
    <artifactId>saga-core</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.apache.servicecomb.saga/saga-core/
implementation 'org.apache.servicecomb.saga:saga-core:0.3.0'
// https://jarcasting.com/artifacts/org.apache.servicecomb.saga/saga-core/
implementation ("org.apache.servicecomb.saga:saga-core:0.3.0")
'org.apache.servicecomb.saga:saga-core:jar:0.3.0'
<dependency org="org.apache.servicecomb.saga" name="saga-core" rev="0.3.0">
  <artifact name="saga-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.apache.servicecomb.saga', module='saga-core', version='0.3.0')
)
libraryDependencies += "org.apache.servicecomb.saga" % "saga-core" % "0.3.0"
[org.apache.servicecomb.saga/saga-core "0.3.0"]

Dependencies

compile (7)

Group / Artifact Type Version
com.lmax : disruptor jar 3.3.7
org.slf4j : slf4j-api jar 1.7.25
org.apache.logging.log4j : log4j-slf4j-impl jar 2.7
org.apache.logging.log4j : log4j-api jar 2.7
org.apache.logging.log4j : log4j-core jar 2.7
io.kamon : kamon-annotation_2.12 jar 0.6.7
org.apache.commons : commons-lang3 jar 3.6

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-core jar 1.10.19
org.awaitility : awaitility jar 3.0.0
com.github.seanyinx : unit-scaffolding jar 1.0.0

Project Modules

There are no modules declared in this project.

Saga Actuator 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. Saga actuator provides a centralized execution engine to delegate the request to the outside services to provide eventual data consistency in Saga way.

Documentation

Reference documentation is available on the ServiceComb website.

Major Architecture of Saga

  • saga-core(transaction and compensation handling logic)
  • saga-core-akka(leverage the actor for executor)
  • 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

Building

Download the source code.

git clone https://github.com/apache/servicecomb-saga-actuator

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

Reference API

See Saga API for details.

Example

See Saga demo for details.

Contact

Contributing

See Pull Request Guide for details.

Reporting Issues

See reporting bugs for details about reporting any issues.

org.apache.servicecomb.saga

The Apache Software Foundation

Versions

Version
0.3.0