txamqp-user team mailing list archive
-
txamqp-user team
-
Mailing list archive
-
Message #00014
Re: pickling objects through amqp
> and you should publish your pickled objects like this:
>
> # txamqp_publisher.py
> msg = Content(pickle.dumps({'a':123,'b':456}))
>
> In any case, I'd recommend not to use pickle for sending objects over
> the network:
>
> http://jcalderone.livejournal.com/15864.html
>
> you may want to have a look at JSON which is fairly widespread, or at
> Thrift which produces smaller messages than JSON and for which txAMQP
> includes builtin support.
>
Hi all guys,
and thanks in advance for the quick support.
Sorry for the dumb error, i'm still new and a little confused about
amqp and txamqp, so forgive me!
I made the changes suggested and all works perfectly!!!
I'll apply even the suggestion by Esteve, i didn't know that pickle is
so evil!!! :-)
I will prototype my apps with the use of json or thrift in mind.
I'm just looking at thrift, and the firs result found is this:
http://developers.facebook.com/thrift/
but i can't access facebook for the filtering policies applyied by the
company i work for.
I think that the following link is the right place to look at thrift
http://incubator.apache.org/thrift/
seems interesting!
Thanks
Fabrizio
Follow ups
References