Jboot v3.1.8 released, adding portal gateway dynamic configuration and load balancing

Jboot is a microservice framework developed based on JFinal, JFinal-Undertow, Dubbo, etc., to help developers lower the threshold of microservice development. At the same time, it perfectly supports multiple maven modules under idea, eclipse, and hot loading of java code, html, css, js and other resource files. Shuangshuang develops and lives happily.

The main updates of Jboot 3.1.x are as follows:

One: RPC completely refactored

Jboot 3.1.x has completely refactored RPC. It needs to be changed in order to be used properly for easy configuration. The API has not changed. All can be smoothly upgraded to Jboot 3.1.x. Although the API has not changed, the implementation has sent a complete change. 

For Dubbo, a lot of new functions have been added under 2.7.x, such as metadata center, configuration center and other functions. After restructuring Jboot, it supports the configuration of all the contents of Dubbo, and supports multiple registration centers and multiple registration centers under a single Application. Service agreement and other support. More flexible in configuration.

Two: new portal gateway

Jboot v3.1.0 also adds a portal gateway, which supports different condition configurations such as host, path, and query, with extremely high performance. It also supports distributed current limiting based on Sentinel, custom gateway interceptors, and so on.

Three: Distributed cache operation and maintenance support

In many secondary cache distributed caches, such as J2Cache, EHRedis, etc., because its first-level cache may be an in-memory cache, its update needs to rely on MQ or Redis Pub / Sub for notification, but in some extreme cases Under the circumstance, there will still be the problem that the MQ notification cannot be caused, causing the first-level cache of some nodes to be unable to be updated. Jboot provides a function that can obtain all cacheNames and refresh them (refresh). In some extreme cases, You can manually refresh the cache through operation and maintenance to synchronize all distributed cache nodes.

The updated contents of Jboot v3.1.8 are as follows:

  • New: Gateway adds dynamic registration path and removes the configuration function
  • New: Gateway returns to Json after being intercepted by Sentinel
  • New: Gateway adds support for multiple hosts, and the default load balancing mechanism of random matching
  • New: Added support for the default configuration of consumer / provider / register / protocol under Dubbo
  • New: JWT can support incoming data through request para
  • Optimization: Modify the DAO attribute type of JbootServiceBase to JbootModel
  • Optimization: Optimize some output logs of JbootrpcBase and Prop
  • Optimization: Rename PRCUtils to PRCUtil to keep the Jboot tool class unified
  • Optimization: Rename JbootRpcApplication to JbootSimpleApplication
  • Optimization: Refactor DubboUtil code to make it more concise
  • Optimization: Use JsonKit to replace the direct use of FastJson, to solve the situation of using other json libraries in the development scenario, there will be no errors, thanks @yangyao
  • Optimization: Upgrade Guava and other related Maven dependencies to the latest version
  • Fix: Fix the problem that ClassScanner cannot scan Shiro instructions
  • Fix: JbootGatewayManager default name configuration error
  • Fix: PRCUtil cannot add some annotations Annotation attributes cause @RPCInject some parameters are invalid
  • Fix: When the distributed configuration Nacos is enabled, there will be garbled characters in the Chinese configuration of Nacos
  • Fix: When using Motan RPC framework, there is a reference error
  • Fix: Some consumer configurations under Dubbo failed
  • Fix: Fix FatTemplate when packaging, you need to configure BaseTemplatePath separately, otherwise the error
  • Fix: The problem of overwriting ActionHandler.getAction may be invalid
  • Documentation: Optimize the documentation related to the gateway
  • Documentation: Related documents to optimize config configuration
  • Documentation: Optimize rpc related documentation

maven depends on:

<dependency>
    <groupId>io.jboot</groupId>
    <artifactId>jboot</artifactId>
    <version>3.1.8</version>
</dependency>

Hello World:

@RequestMapping("/")
public class HelloworldController extends JbootController {

    public void index(){
        renderText("hello world");
    }

    public static void main(String[] args){
        JbootApplication.run(args);
    }
}

Guess you like

Origin www.oschina.net/news/115017/jboot-3-1-8-released