Crates.io | tiny-broke |
lib.rs | tiny-broke |
version | 0.1.0 |
source | src |
created_at | 2019-03-07 11:46:11.105306 |
updated_at | 2019-03-07 11:46:11.105306 |
description | tiny broke is an async messages broker based on øMQ, rpc-like |
homepage | https://github.com/fabienjuif/tiny-broke |
repository | https://github.com/fabienjuif/tiny-broke |
max_upload_size | |
id | 119317 |
size | 43,175 |
This RPC like application, the client ask for something, then register to a topic, waiting for response.
The worker register to some topics, and send back an event when its work is done, so the client can complete its own task.
You can find exemple usage here, in the JavaScript client
docker run -p 3000:3000 fabienjuif/tiny-broke
You have to use environment variables to configure tiny-broke:
TASK_TIMEOUT
: seconds to wait for a worker response one we send the task to it. If the broker does not respond in time we drop the task
60
seconds