Slides from my talk at Symfony UK Meetup. London, 20 Aug 2014. http://twitter.com/cakper
Video: https://www.youtube.com/watch?v=cha92Og9M5A
More Domain-Driven Design related content at: https://domaincentric.net/
6. Message-oriented Middleware
“(…) allows distributed applications !
to communicate and exchange data !
by sending and receiving messages”
http://docs.oracle.com/cd/E19316-01/820-6424/aeraq/index.html
55. Custom producer class
class
HelloProducer
extends
Producer
{
public
function
publish($msgBody,
…)
{
$msgBody
=
serialize($msgBody);
!
parent::publish($msgBody,
…);
}
}
56. Set content type
function
__construct()
{
$this-‐>setContentType('application/json');
}
!
public
function
publish($msgBody,
…)
{
parent::publish(json_encode($msgBody),
…);
}
80. Summary
❖ RabbitMQ is fast!
❖ and reliable!
❖ also language agnostic!
❖ and easy to install and use!
❖ gives you flexibility!
❖ supports high-availability, clustering