go build
Minimal:
./tinymq --exchanges="exchanges.json"
Custom port and storage path:
./tinymq --exchanges="exchanges.json" --port=8081 --storagePath=/var/lib/tinymq
Enable deduplication:
./tinymq --exchanges="exchanges.json" --hashtable="hash.db"
Run tests:
go test ./...
Check for service is work:
Run ./tinymq --exchanges="exchanges.json"
Open in browser https://websocket.tech/
Enter url ws://127.0.0.1:8080/consume/queue1/100
Run
curl --location 'http://127.0.0.1:8080/publish/exchange1' \
--header 'Content-Type: application/json' \
--data '[
{
"Id": 1,
"Data": "Some message 1"
},
{
"Id": 2,
"Data": "Another message 2"
}
]'
You are should immediatelly see this messages in browser.
- Stat collection and api
- Cluster.
- More strict garantee.
- Support XA.
- Security.
- Optimize flushStatus.
- Configurable status files storage.
- Optimize file rotation.
- More configuration options.