PLSA.R
A Server + System API for composite applications development with built in H2 database and dependency injection.
PLSA.R is an Open Source Java Server + API for high demand, low latency requirements. There are no static references, no file reads, access to static fields per request. Everything is either cached and or instantiated on the fly. PLSA.R runs via one command so there are no .war files to deploy, no additional plugins to install it is a simple yet sophisticated alternative to container deployment environments. Performance wise, 1K concurrent requests is an estimate. We might be off. Will you test it out? JMeter is broken?
We even perform a lightweight dependency injection routine so you are not stuck boiler-plating.
We followed Spring so everything should be familiar.
Getting Started
Creating a simple REST endpoint is easy in non-persistent mode with no security. We can simplify the run & build process by installing the Gradle wrapper. This assumes you have Gradle installed.
We first need our build.gradle config file.
Dependency
implementation "net.plsar:plsar:2.2.0"
Build.gradle
plugins {
id 'application'
}
group 'com.app'
version '1.0.0'
repositories {
mavenCentral()
}
application{
mainClass.set('com.application.Main')
}
dependencies {
implementation 'net.plsar:plsar:2.2.0'
}
Main.java
package com.application;
public class Main {
public static void main(String[] args){
PLSAR plsar = new PLSAR(9000);
plsar.start();
}
}
HelloRouter.java
package com.application;
import net.plsar.annotations.NetworkRouter;
import net.plsar.annotations.network.Get;
import net.plsar.annotations.Text;
@NetworkRouter
public class HelloRouter {
@Text
@Get("/")
public String index(){
return "ambient light";
}
}
PLSA.R runs via one command:
gradle run
Browse:
localhost:1234/
A special thanks to Java, Spring, Tomcat, Jetty, Python, Groovy, Node, Ruby, Git. You guys pioneered..