Sers微服務架構協議(Sers 2.0.1/release)
Sers爲一套跨平臺跨語言的開源微服務架構協議。
https://github.com/sersms/Sers
單機QPS能達15萬。目前支持C++、Java、c#。
此版本爲v2.0.1版。(RequestQueue模式)
部署
性能測試
部署(或運行)ServiceCenter Gover Gateway Robot StationDemo五個項目。
qps數據來源於 ab 和 http://ip:6022/ApiStationMng.html 頁面中的統計
項目部署在同一機器, Robot和StationDemo都附加在ServiceCenter上
Os | robot內部調用(8線程) | ab壓測(32線程,CGateway) |
---|---|---|
Windows10 | 150000 | |
CentOs7(2核1G) | 15000 | 3500 |
CentOs7(4核1G) | 25000 | 5000 |
模塊
(x.1)服務中心(ServiceCenter)
功能:服務註冊,請求分發(負載均衡),消息訂閱等。所有服務站點都需要向此站點註冊。
(x.2)服務治理(Gover)
功能:管理監控服務、站點,服務限流,服務統計等。服務治理實際部署在服務中心,此站點爲服務治理的用戶界面。
部署後可打開地址進行管理 http://ip:6022/index.html
(x.3)Http網關(ServiceStation)
功能:外部接口通過本網關調用內部服務。
網關有兩個版本,c++版(CGateway)和dotnet版(Gateway), c++版(CGateway)相對更高效。
(x.4)服務站點(ServiceStation)
(x.x.1)StationDemo
功能:站點Demo。
dotnet\netcore\Station\StationDemo\App.StationDemo.Station
(x.x.2)Robot
功能:可以循環調用指定接口,可用來負載測試。
dotnet\netcore\Station\Robot\App.Robot.Station
http://ip:6022/robot/TaskMng.html