@playt/qrpc
v1.7.0
Published
QRPC is a lightweight queue and scheduling library built for serverless - on top of `bullmq` and `elysia`.
Readme
QRPC
QRPC is a lightweight queue and scheduling library built for serverless - on top of bullmq and elysia.
It provides a simple way to manage queues and schedules with a focus on scalability and developer experience.
Features
- Queue management
- Cron-based scheduling
- Built-in support for retries and deduplication
- Type-safe API based on
tRPC
Installation
Install QRPC using npm:
npm install qrpcCLI Usage
QRPC provides a CLI to start the server. You can configure the server using command-line arguments.
qrpc --port 3000 --token <your-token> --secret <your-secret>Security
Payloads
The payloads are stored unencrypted in the database. Ensure that you do not store sensitive information in the payloads and keep the database secure.
All requests to the processing endpoints contain a jwt token as a Bearer token inside the Authorization header. This token is generated using the secret key provided in the CLI arguments. The token is used to verify the authenticity of the requests and should be kept secure.
The jwt has an expiration time equal to the configured timeout to prevent replay attacks.
API
The token provided in the CLI arguments is used to authenticate requests to the API. Ensure that you keep this token secure and do not expose it publicly.
