[rabbitmq-discuss] Use of tx in AMQP
Matthias Radestock
matthias at rabbitmq.com
Thu Jun 30 06:49:45 BST 2011
On 30/06/11 03:54, Theo Schlossnagle wrote:
> We use it in the PostgreSQL AMQP integration to rollback AMQP
> publishes within the context of a database transaction. It's not XA,
> but it's better than nothing:
>
> https://github.com/omniti-labs/pg_amqp
Thanks Theo. That's pretty neat. And I see why you mention XA since the
code makes it possible to hit multiple brokers in a single PG transaction.
Btw,
https://github.com/omniti-labs/pg_amqp/blob/master/src/pg_amqp.c#L122
should probably say "rollback" instead of "commit".
Matthias.
More information about the rabbitmq-discuss
mailing list