官术网_书友最值得收藏!

Selecting a framework

Having looked at the basics, let's write our product service. After IDE setup, the next step is to select a framework to write the service. The microservice architecture puts forward a few interesting design considerations that will help us select the frameworks:

  • Lightweight runtime: The service should be small in size and fast to deploy
  • High resiliency: It should have support for patterns such as circuit breaker and timeout
  • Measurable and monitorable: It should capture metrics and expose hooks for monitoring agents to tap into
  • Efficient: It should avoid blocking resources and enable high scalability and elasticity in the presence of increased load

A good comparison can be found at: https://cdelmas.github.io/2015/11/01/A-comparison-of-Microservices-Frameworks.html. Three frameworks are gaining popularity in the Java space that meet the preceding requirements: Dropwizard, Vert.x, and Spring Boot.

主站蜘蛛池模板: 诸城市| 宣化县| 清丰县| 合肥市| 威信县| 三台县| 宜昌市| 义乌市| 普陀区| 嘉义县| 天全县| 万全县| 鄢陵县| 和政县| 潞西市| 古交市| 贵溪市| 宜兰县| 普兰县| 壤塘县| 清苑县| 辰溪县| 霍州市| 鄂伦春自治旗| 昆明市| 瑞丽市| 湘乡市| 罗山县| 祥云县| 祁门县| 承德县| 涞源县| 邹城市| 辽源市| 贵州省| 沛县| 盐山县| 环江| 苏尼特右旗| 永修县| 霍城县|