Cricket Microservices Framework
You do not need to download a half of the Internet to have your job done
Lightweight360 kB size
9.1 k LOC
Java 9 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 run on different cloud implementations. Dockerization of services is also an easy task, although not always necessary.
Implements the "ports and adapters" (hexagonal) architecture pattern. The service is event driven with the smallest necessary dose of dependency injection.
HTTP/S requests handled internally to serve both REST and HTML page calls.
In-memory, no SQL 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
- Stop the service by pressing Ctrl-C in the terminal window
wget https://github.com/gskorupa/Cricket/releases/download/1.2.31/cricket-1.2.31.jar mkdir data mkdir log mkdir www echo "Hello world">www/index.html java -jar cricket-1.2.31.jar -r