Apache ServiceComb Pack 是一个微服务应用的数据最终一致性解决方案。
ServiceComb Pack 架构是由 alpha 和 omega组成,其中:
下图展示了alpha, omega以及微服务三者的关系: 在此架构基础上我们除了实现saga协调协议以外,还实现了TCC协调协议。 详情可浏览ServiceComb Pack 设计文档.
同时社区也提供了多种语言的Omega实现:
当前ServiceComb Pack同时支持Spring Boot 1.x 以及 Spring Boot 2.x,你可以使用 -Pspring-boot-1 ,-Pspring-boot-2 参数转换Spring Boot版本。 由于Spring Boot 只在2.x开始支持 JDK9,如果你想用JDK9或者JDK10来编译Pack并运行测试的话,请使用spring-boot-2 profile参数。下面示例的所有命令需要在Pack根目录下运行。
$ mvn clean install -Pspring-boot-2
$ mvn clean install -Pdemo,spring-boot-2
$ mvn clean install -DskipTests=true -Pdemo,spring-boot-2
$ mvn clean install -DskipTests=true -Prelease
如何构建和使用可浏览用户指南。
获取最新发行版本:
获取最新预览版本:
<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>
详情可浏览代码提交指南。