Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

A preliminary study on the mixed Development of vertex 3.0and SpringBoot

Shulou Source: shulou.com Published: 2022-06-03 05:44:14 11月24日 Update

SpringBoot is a popular web application development framework in recent years, and it is a development framework for micro-services. Its Web server kernel is Tomcat or Jetty, which parses client http/https requests as Servlet capacity. Recently, spring.io has launched a new server kernel framework, which is WebFlux, which parses and processes client requests in the way of stream.

Vertx is another micro-service development framework, which is provided by Eclipse, and its server kernel is Netty. This is actually the same as WebFlux. Recently, many friends in China have posted that the performance of SpringBoot's WebFlux is not as good as expected, and they pointed out that although Non-Blocking technology has been used. But there are also performance problems. Although I did not verify their test results, I was inspired by their article to build a project with SpringBoot+Vertx 3 + JDBC.

On the whole, this Demo project is the bottom management of the whole project by SpringBoot, the RestFul layer is realized by Vertx, the Service layer of Spring is used for business processing, the database connection pool is managed by HIKARI, and the database operation is operated by JdbcTemplate. The overall performance is indeed greatly improved, but the complex programs developed are also improved. In particular, EventBus is used when passing customer request data to Spring's Service, which increases the complexity of the code implementation as concurrency increases.

From this Demo experience, in the current application server users are small, there is no need to use Vertx for development, the use of SpringBoot is sufficient.

Tags: Services development server framework kernel client performance data project complexity database whole processing application management same necessary business code at the same time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi NVidia Docker Apple