- Start a server instance using
pnpm dev
- Default port is
3000
, can be changed usingPORT
env variable, likePORT=4000 pnpm dev
- You can start multiple instances of the app to simulate a distributed system
GET /
returns queue metricsPOST /
add a single job, supporting any json payload in the bodyPOST /batch
add a batch of 50 jobs, supporting any json payload in the body
- Job simulates a 1s processing time
- Job has 10% chance of failing
- The queue is configured to retry 3 times for failed jobs
- Hono
- Bullmq