org.apache.servicecomb.saga:omega-transport-feign

Eventual consistency component for distributed systems

License

License

Categories

Categories

Feign Net HTTP Clients
GroupId

GroupId

org.apache.servicecomb.saga
ArtifactId

ArtifactId

omega-transport-feign
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

Eventual consistency component for distributed systems
Project Organization

Project Organization

The Apache Software Foundation

Download omega-transport-feign

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
io.github.openfeign : feign-core jar 9.5.1
org.springframework : spring-context jar
org.springframework.boot : spring-boot-autoconfigure jar
javax.servlet : javax.servlet-api jar
org.apache.servicecomb.saga : omega-context jar 0.2.1
org.apache.servicecomb.saga : omega-transaction jar 0.2.1

test (9)

Group / Artifact Type Version
org.springframework : spring-web jar
org.springframework : spring-webmvc jar
org.springframework : spring-test jar 4.3.7.RELEASE
org.slf4j : slf4j-simple jar
junit : junit jar 4.12
org.mockito : mockito-core jar 2.16.0
org.hamcrest : hamcrest-all jar 1.3
com.github.tomakehurst : wiremock-standalone jar 2.6.0
com.github.seanyinx : unit-scaffolding jar 1.0.0

Project Modules

There are no modules declared in this project.

Pack | 中文 Build Status Coverage StatusMaven Central LicenseQuality Gate Status Gitter

Apache ServiceComb Pack is an eventually data consistency solution for micro-service applications.

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.
  • Easy to extend other coordination protocol which is based on the Pack, now we have Saga and TCC support out of box.

Architecture

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

In this way, we can implement different coordination protocols, such as saga and TCC. See ServiceComb Pack Design for details.

Now we have different lanaguage implementation of Omega

Get Started

  • For ServiceComb Java Chassis application, please see Booking Demo for details.
  • For Spring applications, please see Booking Demo for details.
  • For Dubbo applications, please see Dubbo Demo for details.
  • For TCC with Spring application, please see Tcc Demo for details.
  • To debug the applications, please see Spring Demo Debugging for details.

Build and Run the tests from source

  • Build the source code and run the tests
       $ mvn clean install
  • Build the source demo docker images and run the accept tests
       $ mvn clean install -Pdemo
  • Build the source code and docker images without running tests, the docker profile will be activated if the maven detects the docker installation.
       $ mvn clean install -DskipTests=true -Pdemo
  • Build the release kit for distribution without running the tests, then you can find the release kits in the distribution/target directory.
       $ mvn clean install -DskipTests=true -Prelease

User Guide

How to build and use can refer to User Guide.

Get The Latest Version

Get released version:

Get snapshot version:

  • We publish the snapshot version to Apache nexus repo, please add below repositories into your pom.xml.
            <repositories>
              <repository>
                <releases />
                <snapshots>
                  <enabled>true</enabled>
                </snapshots>
                <id>repo.apache.snapshot</id>
                <url>https://repository.apache.org/content/repositories/snapshots/</url>
              </repository>
            </repositories>
            <pluginRepositories>
              <pluginRepository>
                <releases />
                <snapshots>
                  <enabled>true</enabled>
                </snapshots>
                <id>repo.apache.snapshot</id>
                <url>https://repository.apache.org/content/repositories/snapshots/</url>
              </pluginRepository>
            </pluginRepositories>
    
    
    

FAQ

Contact Us

Contributors

contributors

How to Contribute

See Pull Request Guide for details.

License

Licensed under an Apache 2.0 license.

Export Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The Apache Software Foundation has classified this software as Export Commodity Control Number (ECCN) 5D002, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the "publicly available" Section 742.15(b) exemption (see the BIS Export Administration Regulations, Section 742.15(b)) for both object code and source code.

The following provides more details on the included cryptographic software:

  • Omega/Alpha Transport can be configured use https
org.apache.servicecomb.saga

The Apache Software Foundation

Versions

Version
0.2.1