Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Nats.go | 4,460 | 115 | 1,336 | 3 days ago | 168 | September 16, 2022 | 97 | apache-2.0 | Go | |
Golang client for NATS, the cloud native messaging system. | ||||||||||
Microservices Platform | 3,977 | 18 days ago | 9 | apache-2.0 | Java | |||||
基于SpringBoot2.x、SpringCloud和SpringCloudAlibaba并采用前后端分离的企业级微服务多租户系统架构。并引入组件化的思想实现高内聚低耦合,项目代码简洁注释丰富上手容易,适合学习和企业中使用。真正实现了基于RBAC、jwt和oauth2的无状态统一权限认证的解决方案,面向互联网设计同时适合B端和C端用户,支持CI/CD多环境部署,并提供应用管理方便第三方系统接入;同时还集合各种微服务治理功能和监控功能。模块包括:企业级的认证系统、开发平台、应用监控、慢sql监控、统一日志、单点登录、Redis分布式高速缓存、配置中心、分布式任务调度、接口文档、代码生成等等。 | ||||||||||
Login With | 2,293 | 2 years ago | 9 | August 08, 2018 | 35 | mit | JavaScript | |||
Stateless login-with microservice for OAuth | ||||||||||
Spring Boot Jwt | 1,022 | a year ago | mit | Java | ||||||
JWT auth service using Spring Boot, Spring Security and MySQL | ||||||||||
Gin Boilerplate | 871 | 23 days ago | 8 | mit | Go | |||||
The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and JWT authentication middleware stored in Redis | ||||||||||
Canduma | 751 | 2 months ago | 19 | mit | Rust | |||||
A Rust Boilerplate server with GraphQL API, Diesel, PostgreSQL, session authentication and JWT | ||||||||||
Simplemall | 689 | 3 years ago | n,ull | Java | ||||||
基于SpringCloud的微服务架构实战案例项目,以一个简单的购物流程为示例,融合spring cloud 相关组件,如spring-cloud-netflix、swagger等 | ||||||||||
Paseto | 627 | 11 | 21 | 7 months ago | 3 | November 08, 2018 | 5 | mit | Go | |
Platform-Agnostic Security Tokens implementation in GO (Golang) | ||||||||||
Auth Service | 581 | 3 years ago | 6 | mit | Java | |||||
spring security + oauth2.0 + jwt | ||||||||||
Hydra | 560 | 12 | a month ago | 24 | March 02, 2022 | 18 | mit | Go | ||
后端一站式微服务框架,提供API、web、websocket,RPC、任务调度、消息消费服务器 |
Jin microservices is a complete microservice demo based on PHP language + hyperf microservices framework
githubhttps://github.com/Double-Jin/jin-microservices
giteehttps://gitee.com/ljj96/jin-microservices
As a developer of both php and go, the microservice system of the go language has been basically mastered. There are a lot of articles and open source projects related to the go language on the Internet, which makes it easy for developers who know the go language Get started and implement microservices. After all, go language is the most suitable language for microservices other than java.
The advantage of the php language lies in the web ecosystem, and most of the applications developed are monolithic application architectures. In recent years, with the emergence of hyperf framework based on swoole extension, php can also develop microservice architecture, thanks to open source workers. However, when using "php + microservices" as the keyword, the articles and open source projects searched are simple cases. Developers cannot understand microservices through these simple cases, which makes me want to write this project. raw power.
JM is a complete microservice demo written based on php language + hyperf microservice framework. Unlike articles that can be found on the Internet with simple implementation of a single function point, JM starts from the actual project requirements and strives to achieve the git clone project. The file can help you build a complete knowledge system for microservices, so that you can paste and copy the code of this project when you actually use hyperf to develop a microservice project.
The microservice architecture is not an architecture that is more advanced than the monolithic architecture, but a choice after the project volume and the number of project developers reach a certain order of magnitude. Do not blindly advocate microservices. Forcibly promoting the microservice architecture when the team's development and operation and maintenance capabilities are insufficient may be counterproductive.
The components mentioned below are not only used in microservice architecture, such as elk, nacos, and dtm. They are also used in suitable scenarios in monolithic applications, and the essence of them can be used to meet business needs. If these components are used in production, it is best to choose to compile and install or purchase cloud services
Microservices are an architecture that splits a monolithic application. By using third-party components to solve the problems caused by the split, you will encounter many strange problems when installing and deploying these components. In order to reduce the difficulty, most of the components of this project are installed by docker. I have verified the overall process several times on different computers. Even so, there are still problems such as composer, github, http/tcp access, ports, memory, docker version, etc. , the same operation may cause problems if you change the computer, which requires you to find relevant information according to the content of the error to solve it yourself.
Directory Structure
|-- api-gateway //Gateway service project code
|-- order-srv //Order service project code
|-- user-srv // User service project code
|-- task-srv // Timed task and queue service project code
|-- doc // Documentation directory
|-- README.md //English description
|-- README-CN.md //Chinese description
Complete microservice architecture
JsonRpc call
GET http://127.0.0.1:9501/User/UserInfo
Communication single serviceGET http://127.0.0.1:9501/User/UserBonusList
Communication single serviceGET http://127.0.0.1:9501/User/UserStoredList
Communication single serviceGET http://127.0.0.1:9501/Order/OrderList
Communication multiple servicesJwt authority authentication
GET http://127.0.0.1:9501/Auth/Login
User loginGET http://127.0.0.1:9501/Auth/Logout Authorization : Bearer {{token}}
User logged outUpload the file
POST http://127.0.0.1:9501/File/UploadFile
The file is converted to a base64 string and transferred via json-rpcfile-srv.app.JsonRpc.FileRpcService.uploadFile
Generate a file by receiving a base64 string via json-rpcUnified exception handling
Service Registration and Service Discovery
Message queue
GET http://127.0.0.1:9501/User/UserRabbitMQ
Call the delivery user message queue interfaceGET http://127.0.0.1:9501/Order/OrderRabbitMQ
Call the delivery order message queue interface
Link tracking
Configuration Center
Service current limit
GET http://127.0.0.1:9501/RateLimit/Test
Service downgrade
GET http://127.0.0.1:9501/CircuitBreaker/Test
Distributed log
When the system becomes a cluster, the application logs on dozens or even hundreds of different servers can realize the functions of unified search, analysis and archiving of logs, which can be called a distributed log system.
There are many solutions in production, such as outputting logs directly to Elasticsearch, such as using log collection provided by cloud service providers. In this case, the log is synchronized to ELK through filebeat.
Distributed transaction
A database transaction ensures that all operations within the scope of the transaction can either succeed or fail. But for distributed systems, data operations come from multiple different databases, and the success or failure of a single database transaction does not mean that the data consistency of the entire system is correct, and can only be resolved through distributed transactions.
Distributed transaction means that the initiator, resource and resource manager and transaction coordinator of the transaction are located on different nodes of the distributed system. Two-phase submission, SAGA, TCC and other schemes are commonly used in the industry. After understanding the principle, you can also use http/tcp to achieve two-phase submission, SAGA, and TCC.
The following interface is implemented in a SAGA case via DTM scheduling.
POST http://127.0.0.1:9501/Order/CreateOrder
Distributed transaction