https://github.com/sharpvik/memq
Multi-writer single consumer in-memory queue (fast and simple)
https://github.com/sharpvik/memq
Last synced: about 2 months ago
JSON representation
Multi-writer single consumer in-memory queue (fast and simple)
- Host: GitHub
- URL: https://github.com/sharpvik/memq
- Owner: sharpvik
- License: gpl-3.0
- Created: 2024-07-27T17:39:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-28T16:45:54.000Z (over 1 year ago)
- Last Synced: 2025-01-16T18:29:39.811Z (about 1 year ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# memq
Multi-writer single consumer in-memory queue (fast and simple).
## Run
```bash
SUB=https://api.example.com/msg KEY=your_api_key memq
```
## Settings
Should be passed as env vars.
```text
SUB = https://api.example.com/msg # consumer's address
KEY = your_api_key # authentication token
ADDR = localhost:5359 # local binding address
QCAP = 1024 # queue capacity
```
## Sending Messages
```http
POST https://queue.example.com/msg
Content-Type: ...
Your message in the body
```
The `Content-Type` is going to be forwarded to the consumer, so be mindful of
that. When sending bytes, use `application/octet-stream`, for JSON data - use
`application/json`.
Anyways, I'm not here to teach you - in any uncertain situation - Google your
way out of it like you always do 😊