bunny icon indicating copy to clipboard operation
bunny copied to clipboard

Automatic [de]serialization

Open michaelklishin opened this issue 12 years ago • 9 comments

It may be nice to steal a page from Hutch/etc's book and provide a way to serialize and deserialize published messages and delivered bodies automatically. We can go as far as having our own middleware (à la Rack or Faraday or Ring).

michaelklishin avatar Jan 23 '14 07:01 michaelklishin

:+1: This will definitely help my implementation as well: https://github.com/jingweno/message_queue/tree/master/lib/message_queue/serializers

owenthereal avatar Jan 23 '14 12:01 owenthereal

:+1:

bobbytables avatar Jan 28 '14 18:01 bobbytables

Link to book?

camelpunch avatar Feb 17 '16 10:02 camelpunch

I notice this has been sitting for a while, has there been any more discussion on this one behind the scenes? it is something I was wanting today so what better what to get what I want than to implement it.

stefansedich avatar Oct 07 '16 07:10 stefansedich

It needs to be opt-in, that's about as far as my opinion about this go. 

On 7 October 2016 at 10:31:48, Stefan Sedich ([email protected]) wrote:

I notice this has been sitting for a while, has there been any more discussion on this one
behind the scenes? it is something I was wanting today so what better what to get what I
want than to implement it.

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/ruby-amqp/bunny/issues/185#issuecomment-252172352

MK

Staff Software Engineer, Pivotal/RabbitMQ

michaelklishin avatar Oct 07 '16 07:10 michaelklishin

Agreed, will have a think about it and see what I can come up with!

stefansedich avatar Oct 08 '16 00:10 stefansedich

This would be nice especially if it was keyed to the Content-Type information provided as part of the message.

tadman avatar Mar 21 '17 20:03 tadman

Just came across this, I'd like to chime in on the "needs to be opt in" side. I have a couple subscribers that expect a string of bytes to do some initial processing, then deserialize the important bits.

mlh758 avatar Aug 15 '19 20:08 mlh758