tlq

Crates.iotlq
lib.rstlq
version0.2.2
created_at2025-02-16 10:52:53.972014+00
updated_at2025-09-04 20:18:22.786636+00
descriptionTiny Little Queue
homepage
repository
max_upload_size
id1557565
size76,779
Nebojsa Jakovljevic (nebjak)

documentation

README

TLQ (Tiny Little Queue)

TLQ Logo

A minimal message queue that just works.

📖 Full Documentation →

Quick Start

Install

# Using Cargo
cargo install tlq

# Using Docker
docker run -p 1337:1337 nebojsa/tlq

Use

# 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>"]}'

Features

  • In-memory - Zero persistence overhead
  • Simple API - Just add, get, delete, retry
  • Auto-locking - Messages lock on retrieval
  • Client libraries - Rust, Node.js, Python, Go

Why TLQ?

Perfect for:

  • Development & testing
  • Lightweight job processing
  • Microservice communication
  • Any scenario where persistence isn't critical

License

MIT

Author

Nebojsa Jakovljevic

Commit count: 0

cargo fmt