Package for create microservice architecture based on Ijson job server.
All requests are made through JSON-RPC 2.0
- Gateways
- Microservices
- Sockets
npm i --save @lomray/microservice-nodejs-lib
Take a look at Microservices to more understand how it works.
Go to example
folder and check out the example of creating microservice and gateway.
See example/scratch.http
for understanding how to send requests.
- install dependencies:
npm ci
- run ijson:
docker-compose up
- run 2 microservices - gateway & demo microservice:
node --require ts-node/register example/index.ts