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 architecture with the smallest necessary dose of dependency injection.
HTTP/S requests handled internally to serve both REST and HTML page calls.
Two, ready to use, in-memory databases: key-value (no sql) and H2 Database (sql).
Automatic JSON serialization/deserialization.
One-time or repetitive tasks can be configured or created programatically.
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.
mkdir myservice cd myservice wget https://www.cricketmsf.org/cricket-latest.jar mkdir work mkdir work/log mkdir work/data mkdir work/www echo "Hello World!">work/www/index.html java -jar cricket-latest.jar -r
Cricket is available under the Apache 2.0 license, and you can use it for any application for free. I continue to provide new features and care about its quality, but it is not easy without financial backing. You can support Cricket's development using the following methods: