Getting Started
It’s very easy to get started with Restlight!
In microservices, it is generally expected that service is a lightweight application, and the Spring-Web framework we often use is really a good framework that allows us to develop a variety of applications easily, but it is too bloated for applications in microservices, which just need a rest supports and do not need the session, ModelAndview, JSP and so on… Restlight aims to serve as a web framework that helps users to build a high performance and lightweight microservice.
| Name | Version |
|---|---|
| Java | JDK8+ |
| Spring Boot | 2.1.0.RELEASE+ |
| Netty | 4.1.52.Final+ |
| Tcnative | 2.0.34.Final+ and matches with Netty |
CompletableFuture、ListenableFuture(Guava).It’s very easy to get started with Restlight!
Restlight Starter在Restlight Spring 基础上封装的Spring Boot Starter提供基于Spring Boot的自动配置
Restlight内置了常用的Filter(IP白名单、新建连接数限制、CPU过载保护)、Interceptor(访问日志、参数签名验证)和表单参数解析器
Restlight适配了Spring Boot Actuator, 提供详细的健康检查以及监控等接口
Restlight支持了Spring MVC的使用习惯,你可以按照Spring MVC的方式使用Restlight
Restlight支持了JAX-RS的使用习惯,你可以按照JAX-RS的方式使用Restlight
esa.restlight.core.Restlight为Restlight架构中的Restlight Core模块的入口类, 在Restlight Server 基础上丰富了更多的功能
当前Restlight版本支持Filter , HandlerInterceptor, Controller, ExceptionHandler异步。
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.