Why this framework

Fast and small memory footprint to lower production cost.

It is 44 times faster than the most popular microservices platform Spring Boot embedded
Tomcat and use only 1⁄5 of memory. Here is the benchmark
results compare with Spring Boot and other microservices frameworks.

In another terminal, issue the curl command like this to verify the server is
working.

curl localhost:8080/v2/pet/111

Debugging

To run/debug from IDE, you need to
configure a Java application with main class “com.networknt.server.Server” and working
directory is your project folder. There is no container and you are working on just a standalone
Java application.

Start Server

In IDE

create a Java application that main class is com.networknt.server.Server and working
directory is your project root folder. You can debug your server just like a single
POJO application.

From Maven

mvn exec:exec

Command Line

java -jar target/demo-0.1.0.jar

Stop Server

you can use Ctrl+C to kill the server but for production use the following command

kill -s TERM <pid>

The server has a shutdown hook and the above command allow it to clean up. For example,
complete in-flight requests and close the database connections etc.

Related Repositories

Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under th ...