@bampich.ok/message-worker
v1.1.0
Published
consumes and processes messages
Downloads
6
Readme
message-worker
About
Consumes and processes messages from a pubsub.
Install
npm install @bampich.ok/message-worker
Usage
Run index.js
.
Configure
Set NODE_ENV
to development
to see output in the console. Use CMD+C to kill a running server.
Running manually
# terminal window 1
redis-server ./scripts/k8s/redis/redis.conf
# terminal window 2
node src/index.js
# terminal window 3
node bpRelay/src/relay-server.js
# terminal window 4
grpcurl -plaintext \
-import-path bpRelay/protos/ \
-proto messaging.proto \
-d @ 0.0.0.0:50053 \
Bampich.DirectMessages/send <<EOM
{
"rcpt": "test rcpt",
"from":"test from",
"data":"test data"
}
EOM