| Crates.io | tlq |
| lib.rs | tlq |
| version | 0.3.0 |
| created_at | 2025-02-16 10:52:53.972014+00 |
| updated_at | 2025-11-12 17:38:02.381883+00 |
| description | Tiny Little Queue |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1557565 |
| size | 86,163 |
A minimal message queue that just works.
# Using Cargo
cargo install tlq
# Using Docker
docker run -p 1337:1337 ghcr.io/skyaktech/tlq
# Docker with custom configuration
docker run -e TLQ_PORT=8080 -p 8080:8080 ghcr.io/skyaktech/tlq
docker run -e TLQ_MAX_MESSAGE_SIZE=1048576 -e TLQ_LOG_LEVEL=debug -p 1337:1337 ghcr.io/skyaktech/tlq
# Add a message
curl -X POST localhost:1337/add \
-H "Content-Type: application/json" \
-d '{"body":"Hello TLQ!"}'
# Get a message (auto-locks it)
curl -X POST localhost:1337/get \
-H "Content-Type: application/json" \
-d '{"count":1}'
# Delete after success
curl -X POST localhost:1337/delete \
-H "Content-Type: application/json" \
-d '{"ids":["<message-id>"]}'
# Or retry after failure
curl -X POST localhost:1337/retry \
-H "Content-Type: application/json" \
-d '{"ids":["<message-id>"]}'
You can configure TLQ via environment variables (all optional; defaults shown):
Examples:
TLQ_PORT=8080 tlq
TLQ_MAX_MESSAGE_SIZE=1048576 TLQ_LOG_LEVEL=debug tlq
Perfect for:
MIT
Nebojsa Jakovljevic