0

Can I put in queue PHP objects or I must to serialize them before put into queue and then unserialize?

How to handle messages from queues?

asked Nov 14, 2013 at 16:29

1 Answer 1

1

Yes, you have to use one of numerous serializers. If your app is homogenous standard php's seraialize and unserialize will works fine, otherwise you may want to use json_encode and json_decode.

P.S.:

I wrote small framework to deal with amqp - amqpy which deal with serialization and deserialization transparently + add some sugar like advanced exceptions handling, etc. It doesn't provide enough docs and examples yet, but if someone look into sources and existent demos and find framework useful I will spend some time to add them.

answered Nov 15, 2013 at 7:36
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.