issues
search
threefoldtech
/
rmb-rs
RMB implementation in rust
Apache License 2.0
3
stars
1
forks
source link
Proxy
#45
Closed
muhamadazmy
closed
2 years ago
muhamadazmy
commented
2 years ago
This implements a proxy workers
When a message is sent with special command
system.proxy.request
the message is handled by the worker
The worker extracts the payload of the message which is the 'proxied' message.
The proxied message is verified normally (timestamp, signatures, etc...)
Not a pyaload request can't live longer that it's envelope so only TTL for the envelope applies.
The payload message is assigned a special (ret) queue which is also handled by the proxy workers.
Once a proxy worker gets a reply, it brings back it's envelope
message is dropped if envelope has expired.
reply is encapsulated in another response message
sent back to the caller
system.proxy.request
the message is handled by the worker