Open maxim-f1 opened 7 months ago
I think, we should implement it via Generic: broker.publish[int](..., rpc=True)
Or even with broker.publish[RabbitMessage](..., rpc=True)
to return raw message with all headers and other params
Well, the concept changed. I think, we will make decoder lazy in 0.6.0, so u will be able to serialize RPC response to any time right from bytes (also, we should merge #1649 first)
Two cases of rpc mods for producer.
1) If None is returned from the consume function, I would like the publish function to return None instead of an empty byte string.
2) I would like to be able to put pydantic model on publish with rpc=True so that the RPC response is automatically validated.