amqp-rpc-node-client
rabbitmq with management ui
docker run -d --rm --name rabbitmq -p 8080:15672 -p 5672:5672 rabbitmq:3-management
rabbitmq standalone
docker run -d --rm --name rabbitmq -p 5672:5672 rabbitmq:3
note : service won't work without rabbitmq
usage
yarn add amqp-rpc-node-client
simple rpc usage example
const ServiceCreator = ; async { const service = await ; await service; ; // with reply-to and correlation-id ; // await service.purgeAndClose();};
simple consumer example
const assert = ;const ServiceCreator = ; async { const service = await ; await service; let res = await service; res = JSON; console; assert; await service;};
go example directory for further examples