Hybrid server is a special project that is designed as a host server for services built on top
of light-hybrid-4j framework. Every service is built as a small jar file with only the business
logic handlers inside and multiple jar files can be put into a docker volume to be loaded by a
hybrid server instance running in docker container. In this way, the developers has nothing to
do with the server at all they just need to focus on their domain business logic. Also as all
these services are deployed in the same JVM, the communication between them are faster although
it is still through HTTPS channel. This is our serverless solution.
This generator only generate the server platform that can host many other serivices. It doesn’t
have any model for input.
Here is an example of config.json for light-hybrid-4j server generator.
The generator scaffolds a server platform which can host a number of light-hybrid-4j services.
The generated project is just a skeleton without any service. You have to generate one or more
services (by using the light-hybrid-4j service generator) and put these jar file(s) into the
classpath and start this server.