In-memory message queue with pub/sub support for aux4.
aux4 aux4 pkger install aux4/queue
aux4 queue start
aux4 queue start --port 9000 --token mysecret
aux4 queue create --name jobs
echo '{"task":"build"}' | aux4 queue send --name jobs
cat events.jsonl | aux4 queue send --name jobs
aux4 queue receive --name jobs
aux4 queue receive --name jobs --limit 10
aux4 queue receive --name jobs | jq .
aux4 queue stop
aux4 queue stop --port 9000
aux4 queue list
aux4 queue delete --name jobs
Queues can be configured to automatically forward every published message to a WebSocket or webhook endpoint. This enables real-time integration with external systems.
Every message sent to this queue will also be POSTed to the webhook URL.
aux4 queue create --name events --webhook https://api.example.com/ingest
Every message sent to this queue will also be written to the WebSocket connection.
aux4 queue create --name logs --ws wss://stream.example.com/logs
Attach HTTP headers to proxy requests (applied to both WebSocket handshake and webhook POST).
aux4 queue create --name secure-events \
--webhook https://api.example.com/ingest \
--header "Authorization: Bearer tok123"
Use --queues to create queues with proxy settings when the server starts.
aux4 queue start --queues '[
{"name": "events", "webhook": "https://api.example.com/ingest", "header": ["Authorization: Bearer tok123"]},
{"name": "logs", "ws": "wss://stream.example.com/logs"}
]'
Pass --token to start to require authentication. All clients must then include the same --token.
aux4 queue start --token mysecret
aux4 queue create --name jobs --token mysecret