Re:RPC Olympics – The Search for the Perfect RPC Protocol
by anonu on Thursday March 19, 2020 @11:04PM
(#22634286)
Curious to hear anyone's experience with RPC over Nameko in Python. We use it extensively on top of RabbitMQ and its been pretty robust.
[ Parent
| on HN ]
Re:RPC Olympics – The Search for the Perfect RPC Protocol
by prakhunov on Thursday March 19, 2020 @11:25PM
(#22634444)
RPC over Rabbit can work (and does) but you do have to remember that it in the end it is a queue and a couple of bad messages can stop your entire system.
RPC over Rabbit is fine if you don't care about the result, or you can guarantee that each message gets processed in a short constant time.
Re:RPC Olympics – The Search for the Perfect RPC Protocol
by monus21 on Friday March 20, 2020 @02:58AM
(#22635591)
I have a similar implementation of RPC over AMQP in Node.js and 2 things i'd advise. (Similar to my sibling poster)
1) Don't requeue on error. One bad message could bring down your entire service. Better to just push it to Sentry and make a fix for it.
2) Have a timeout in your message handler.