Java framework for modern web, cloud, high-load, and microservices solutions
A full-featured, modern Java platform built from the ground up as an alternative to Spring/Micronauts/Netty/Jetty. It is designed to be self-sufficient (no third-party dependencies), simple, lightweight and provides competitive performance. It consists of a number of libraries, from dependency injection and high-performance asynchronous I/O (inspired by Node.js), to application servers and big data solutions
- HTTP
- Inject
- Codegen
- Eventloop
class Main extends HttpServerLauncher {
@Provides
AsyncServlet servlet() {
return request -> HttpResponse.ok200()
.withPlainText("Hello world");
}
public static void main(String[] args) throws Exception {
Launcher launcher = new HttpHelloWorldExample();
launcher.launch(args);
}
}
class Main extends Launcher {
@Inject
String message;
@Provides
String message() {
return "Hello world";
}
@Override
protected void run() {
System.out.println(message);
}
public static void main(String[] args) throws Exception {
Launcher launcher = new Main();
launcher.launch(args);
}
}
class Main {
public static void main(String[] args) throws ReflectiveOperationException {
Class<Example> example = ClassBuilder.create(DefiningClassLoader.create(), Example.class)
.withMethod("sayHello",
call(staticField(System.class, "out"), "println", value("Hello world")))
.build();
Example instance = example.getDeclaredConstructor().newInstance();
instance.sayHello();
}
public interface Example {
void sayHello();
}
}
class Main {
public static void main(String[] args) {
Eventloop eventloop = Eventloop.create();
eventloop.post(() -> System.out.println("Hello world"));
eventloop.run();
}
}
Minimum dependencies
Lightweight minimalistic self-sufficient Java libraries without third-party dependencies
Rich stack
Features a rich stack of technologies for building fast asynchronous applications
Overhead-free
Minimalist design with no overhead for competitive performance
Alternative approach
An alternative to Spring, Micronaut, Apache Spark, Quarkus, and other solutions
Components
A simple set of loosely coupled modules without third-party dependencies