Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
}
```