Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derek82511/node-rpc-proxy-rabbitmq
Simple Node.js rpc proxy implementation with rabbitmq.
https://github.com/derek82511/node-rpc-proxy-rabbitmq
docker fastify grpc grpc-node http2 http2-server kubernetes nodejs openshift pm2 rabbitmq rpc
Last synced: 19 days ago
JSON representation
Simple Node.js rpc proxy implementation with rabbitmq.
- Host: GitHub
- URL: https://github.com/derek82511/node-rpc-proxy-rabbitmq
- Owner: derek82511
- License: mit
- Created: 2019-07-08T03:02:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T10:52:59.000Z (over 2 years ago)
- Last Synced: 2023-03-07T13:27:16.855Z (almost 2 years ago)
- Topics: docker, fastify, grpc, grpc-node, http2, http2-server, kubernetes, nodejs, openshift, pm2, rabbitmq, rpc
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a node.js rpc proxy implementation with rabbitmq.
Docker Hub: [https://hub.docker.com/r/derek82511/node-rpc-proxy-rabbitmq](https://hub.docker.com/r/derek82511/node-rpc-proxy-rabbitmq)
GitHub: [https://github.com/derek82511/node-rpc-proxy-rabbitmq](https://github.com/derek82511/node-rpc-proxy-rabbitmq)
# Use Node.js
First, modify config/config-func.yaml, config/config-protocol.yaml according to your rpc infos.```console
npm installnpm start
curl -X POST \
'http://localhost:3000/rpc?func=[your func]' \
-H 'content-type: application/json' \
-d '{ "foo": "bar" }'
```# Use Docker
```console
docker run -it \
-p 3000:3000 \
-e "TZ=Asia/Taipei" \
-v [path to your func config folder]:/app/config \
--name node-rpc-proxy-rabbitmq \
derek82511/node-rpc-proxy-rabbitmq:latest
```# Testing
```console
curl -X POST \
'http://localhost:3000/rpc?func=[your func]' \
-H 'content-type: application/json' \
-d '{ "foo": "bar" }'
```