bsg-kv-queue
v0.0.12
Published
Making post requests to KV is slow. Our workers spend most of the time waiting for the POST requests to finish. We want them to run faster. So that we can avoid hitting the timeout limit of 15 minutes. When the workers hit the time-limit the entire job cr
Downloads
4
Readme
Why
Making post requests to KV is slow. Our workers spend most of the time waiting for the POST requests to finish. We want them to run faster. So that we can avoid hitting the timeout limit of 15 minutes. When the workers hit the time-limit the entire job crashes disabling the entire feature.
How
By accepting post messages within amazon AWS cloud instead
- The service quickly enqueue the messages to AWS-SQS
- Running a schedule within the time-limit the dequeue service will upload as many entries as it can manage to KV
- Parallel processing. Both the enqueuing and the dequeue process creates workers that executes in parallel.
Features
- GZip compression
- Enqueue and Dequeue parallelize
- Logging of failed entries
- Logging of all successful entries
- NPM library for enqueueing messages to SQS