I’m trying to use Crossbar in a real-time application that requires sending large payloads (About 0.5MB each). I found out that Crossbar has a really good performance with multiple requests of small data packets but it seems that it’s not the same with large ones.
I got the same time difference (transmission delay) by using RPC or PubSub messaging patterns.
written an example (using RPC) of a caller and a receiver, the receiver
prints the time difference based on the timestamp on which the package has been sent and the receiving timestamp. Is it normal to have 0,18s of
delay when transmitting a payload of 0.5MB? Is there anything I can do to reduce this time?
For instance by running the caller without arguments “python3 caller.py” (empty payload) I get:
Receiver count:1 difference:0.0008335113525390625
Receiver count:2 difference:0.0007576942443847656
whereas, launching “python3 caller.py -p” (large payload) I get:
Receiver count:1 difference:0.18456363677978516
Receiver count:2 difference:0.18334078788757324
Thanks in advance
caller.py (1012 Bytes)
config.json (2.2 KB)
receiver.py (481 Bytes)