{"id":13535382,"url":"https://github.com/lrwinx/shop","last_synced_at":"2025-04-05T20:05:24.864Z","repository":{"id":68076241,"uuid":"116618418","full_name":"lrwinx/shop","owner":"lrwinx","description":"spring cloud最佳实践项目实例，使用了spring cloud全家桶，TCC事务管理，EDA事务最终一致性等技术的下单示例","archived":false,"fork":false,"pushed_at":"2018-01-22T07:36:40.000Z","size":240,"stargazers_count":436,"open_issues_count":0,"forks_count":203,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-03-29T19:02:45.163Z","etag":null,"topics":["api-gateway","api-gateways","eda","java-8","maven","spring-boot","spring-cloud","tcc","zuul","zuul-feign"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lrwinx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-08T02:21:10.000Z","updated_at":"2025-02-26T10:55:11.000Z","dependencies_parsed_at":"2023-07-16T08:00:41.192Z","dependency_job_id":null,"html_url":"https://github.com/lrwinx/shop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrwinx%2Fshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrwinx%2Fshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrwinx%2Fshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lrwinx%2Fshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lrwinx","download_url":"https://codeload.github.com/lrwinx/shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393568,"owners_count":20931812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-gateway","api-gateways","eda","java-8","maven","spring-boot","spring-cloud","tcc","zuul","zuul-feign"],"created_at":"2024-08-01T08:00:55.259Z","updated_at":"2025-04-05T20:05:24.839Z","avatar_url":"https://github.com/lrwinx.png","language":"Java","funding_links":[],"categories":["开源"],"sub_categories":[],"readme":"# 项目简介\n\n1. 此商城项目，使用spring cloud 全家桶进行开发\n\n2. 事务处理使用两种:强一致性(TCC),最终一致性(EDA)\n\n\n## 使用技术\n\n1. java 8 : 使用lambda表达式，简化写法\n\n1. lombok : 简化java bean的写法\n\n1. docker-maven-plugin : 直接生成Dockerfile (本地需更换成阿里云镜像，速度和成功率会提升很多)\n\n1. H2 : 内存式数据库，减少DB依赖 (正式环境时，可以直接切换至MYSQL)\n\n1. spring cloud eureka : 用于服务注册发现\n\n1. spring data jpa : 数据库底层连接技术\n\n1. spring mvc : 访问控制层技术\n\n1. spring cloud robbin : 使用客户端负载均衡，进行服务提供者的调用\n\n1. spring cloud feign : 分装了ribbon的使用，直接使用注解的方式，进行调用\n\n1. spring boot actuate : spring boot项目的健康检查，此项目整合了应用服务的健康状态\n\n1. spring security : 权限管理\n\n1. spring cloud zuul : 网关服务，用来聚合和管理底层微服务接口\n\n1. spring cloud config : 集中配置管理，整合各个微服务下的不同配置文件\n\n1. spring cloud zipkin : 微服务调用监控系统，可以监听整个调用连\n\n1. ByteTCC:TCC事务实现框架 [点击进入TCC的github地址](https://github.com/liuyangming/ByteTCC/)\n\n\n\n    \n## 技术文档\n\n[H2的web客户端查看方式](https://github.com/lrwinx/shop/wiki/h2%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9A%84web%E5%AE%A2%E6%88%B7%E7%AB%AF)\n\n## 项目分级\n\n### 业务分级\n\n此项目分为四个核心模块:\n\n1. 用户模块(user-service):\n\n1. 积分模块(score-service):\n\n1. 产品模块(product-service):\n\n1. 订单模块(order-service):\n\n\n### 核心模块分层:\n\n{模块名}-service-api: 微服务的模块api定义\n\n{模块名}-service-core: 微服务的模块业务逻辑实现\n\n\n## 关于我\n\n1. author : Lrwin\n1. blog : http://lrwinx.github.io/\n1. email : dreamfly@126.com\n1. github : https://github.com/lrwinx\n1. city : TianJin\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flrwinx%2Fshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flrwinx%2Fshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flrwinx%2Fshop/lists"}