Cricket Microservices Framework
You do not need to download a half of the Internet to have your job done
Lightweight256 KB (core classes), 2.8 MB with external libraries (fat jar)
10 k LOC
Java 10 ready
Runs on 1 MB RAM*
FreeApache 2.0 licensed.
Hosted on GitHub.
MinimalisticPlain Old Java
Configuration over convention
No hidden magic
Services build with Cricket can be deployed in cloud environments that supports Java or Docker containers.
Implements the "ports and adapters" (hexagonal) architecture pattern. Event driven services with the smallest necessary dose of dependency injection.
HTTP/S requests handled internally to serve both REST and HTML page calls.
Built-in, in-memory key-value database can be used for fast prototyping.
Data to JSON serializer
Automatic JSON serialization/deserialization thanks to the json-io project.
One-time or repetitive tasks based on configuration or defined in code.
The StandardLogger (using Java Logger) can be replaced with other adapter of your choice, eg. centralized logging system.
Your service can monitor it's sensitive parameters or external services. Example adapters to monitor memory and disk space are included.
Running your static web page in 1 minute
- Open terminal window in the newly created directory
- Download Cricket MSF library from the GitHub repository
- Create web page file
- Start the service
- Display your page in web browser at http://localhost:8080
- Call example echo service API at http://localhost:8080/api/echo?some_param=test
- Stop the service by pressing Ctrl-C in the terminal window
wget https://github.com/gskorupa/Cricket/releases/download/1.2.37/cricket-1.2.37.jar mkdir work mkdir work/log mkdir work/data mkdir work/www echo "Hello World!">work/www/index.html java -jar cricket-1.2.37.jar -r