A more modern framework for Java application development: faster, smaller, and freer. No Spring, no Servlet, no JavaEE;Independent lightweight ecology. The main frame is only 0.1 MB.
@Controller
public class App {
public static void main(String[] args) {
Solon.start(App.class, args);
}
@Get
@Socket
@Mapping("/hello")
public String hello(@Param(defaultValue = "java") String name) {
return String.format("Hello %s!", name);
}
}
Getting started exploration video (user recorded):
Projects relative to Spring Boot and Spring Cloud:
- Startup is 5 to 10 times faster. (faster)
- qps is 2 to 3 times higher. (higher)
- Save 1/3 ~ 1/2 of memory at runtime. (less)
- Packing can be reduced to 1/2 ~ 1/10; for example, 300Mb becomes 23Mb. (smaller)
- Registration discovery based on service name corresponds to k8s svc
- Support Service Mesh architecture deployment scheme
- Support jdk8, jdk11, jdk17, jdk19 at the same time
- No Spring, no Servlet, no JavaEE; independent lightweight ecology
This update:
- Add fastdfs-solon-cloud-plugin plugin
- Plug-in file-s3-solon-plugin increases content size acquisition
- Plug-in aws-s3-solon-plugin increases content size acquisition
- Add CloudFileService::exists(…) and CloudFileService::getTempUrl(…) interfaces
- Add Meda::contentSize() and DownloadedFile::getContentSize() interfaces
- Add Media::bodyAsBytes() interface, the old Media::bodyAsByts() is marked as deprecated
- Add core detection of startup class and package name
- Add server.wrapHost, server.wrapPort configuration support! ! ! (more friendly to docker monomer registration and discovery)
Ecological structure diagram:
Learn more about Solon:
Project repository:
#Solon #v1121 #released #accumulated #commits #News Fast Delivery