# @bampich.ok/message-worker

> consumes and processes messages

Latest version **1.1.0** (published 2021-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bampich.ok/message-worker
pnpm add @bampich.ok/message-worker
yarn add @bampich.ok/message-worker
bun add @bampich.ok/message-worker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-08-08 |
| First published | 2021-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 26.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | bampich.ok |
| Maintainers | hk6an6, alexandra.aragon, sarah.morales, adriana.jovane |
| Keywords | ioredis, redis, pubsub |

## Links

- npm: https://www.npmjs.com/package/@bampich.ok/message-worker
- Repository: https://github.com/bampichok/message-worker
- Homepage: https://github.com/bampichok/message-worker#readme
- Issues: https://github.com/bampichok/message-worker/issues
- npm.io page: https://npm.io/package/@bampich.ok/message-worker

## Dependencies (12)

- [pg](https://npm.io/package/pg.md) ^8.5.1
- [ioredis](https://npm.io/package/ioredis.md) ^4.25.0
- [winston](https://npm.io/package/winston.md) ^3.3.3
- [pg-format](https://npm.io/package/pg-format.md) ^1.0.4
- [@grpc/grpc-js](https://npm.io/package/@grpc/grpc-js.md) ^1.3.4
- [firebase-admin](https://npm.io/package/firebase-admin.md) ^9.11.0
- [google-protobuf](https://npm.io/package/google-protobuf.md) ^3.14.0
- [@bampich.ok/data](https://npm.io/package/@bampich.ok/data.md) ^1.0.1
- [@bampich.ok/logs](https://npm.io/package/@bampich.ok/logs.md) ^1.0.5
- [@grpc/proto-loader](https://npm.io/package/@grpc/proto-loader.md) ^0.5.5
- [haversine-distance](https://npm.io/package/haversine-distance.md) ^1.2.1
- [@bampich.ok/endpoint](https://npm.io/package/@bampich.ok/endpoint.md) ^1.0.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-08-08
- 1.0.1 — 2021-07-24

## 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
```

---
_Source: https://npm.io/package/@bampich.ok/message-worker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
