Popularity
2.5
Growing
Activity
9.0
Growing
44
7
11

Programming language: Java
Tags: Web Frameworks     Projects    

ActiveJ alternatives and similar libraries

Based on the "Web Frameworks" category

Do you think we are missing an alternative of ActiveJ or a related project?

Add another 'Web Frameworks' Library

README

Maven Central GitHub

Introduction

ActiveJ is a fully-featured alternative Java platform built from the ground up as a replacement of Spring, Spark, Quarkus, Micronauts, and other solutions. It is minimalistic, boilerplate-free, and incomparably faster, which is proven by benchmarks. ActiveJ has very few third-party dependencies, yet features a full stack of technologies with an efficient async programming model and a powerful DI library ActiveInject

Quick start

Insert this snippet to your terminal...

mvn archetype:generate -DarchetypeGroupId=io.activej -DarchetypeArtifactId=archetype-http -DarchetypeVersion=2.2

... and open the project in your favourite IDE. Then, build the application and run it. Open your browser on localhost:8080 to see the "Hello World" message.

public final class HttpHelloWorldExample 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); 
    }
}

Some technical details regarding the above example:

  • Features a JAR file size of only 1.4 MB. In comparison, a minimal Spring web app size is approximately 17 MB.
  • The cold start time is 0.65 sec.
  • The ActiveInject DI library which is used, is 5.5 times faster than Guice and hundreds of times faster than Spring.

To learn more about ActiveJ, please visit https://activej.io or follow our 5-minute getting-started guide.

Repository Structure

This repository contains the ActiveJ platform components along with helper ActiveJ libraries:

Examples for usage of the ActiveJ platform and all the ActiveJ libraries can be found in examples module.


*Note that all licence references and agreements mentioned in the ActiveJ README section above are relevant to that project's source code only.