Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saladtechnologies/benchmark-queues
This is a lambda that allows getting and putting work into queues via http
https://github.com/saladtechnologies/benchmark-queues
Last synced: 6 days ago
JSON representation
This is a lambda that allows getting and putting work into queues via http
- Host: GitHub
- URL: https://github.com/saladtechnologies/benchmark-queues
- Owner: SaladTechnologies
- Created: 2023-08-22T18:16:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-25T13:53:28.000Z (about 1 year ago)
- Last Synced: 2024-04-22T20:26:52.325Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Benchmarking Work Queue Management
This is a simple lambda that allows the use of sqs queues by benchmark workers.
## API
### POST /:queueId
Submit a job to a queue. The queue will be created if it doesn't exist already.
```bash
curl -X POST \
'https://.lambda-url.us-east-2.on.aws/' \
--header 'Benchmark-Api-Key: ' \
--header 'Content-Type: application/json' \
--data '{"example": "data"}'
```#### Response
```json
{
"message": "Message sent"
}
```### GET /:queueId
Get a job from a queue. The queue will be created if it doesn't exist already.
```bash
curl 'https://.lambda-url.us-east-2.on.aws/' \
--header 'Benchmark-Api-Key: '
```#### Response
```json
{
"messageId": "1234567890",
"body": "{\"example\": \"data\"}"
}
```### DELETE /:queueId/:messageId
Delete a job from a queue. You must do this when done processing a particular job, or it will be handed out again after 5 minutes.
```bash
curl -X DELETE \
'https://.lambda-url.us-east-2.on.aws//' \
--header 'Benchmark-Api-Key: '
```#### Response
```json
{
"message": "Message deleted"
}
```