[erlang-questions] AMQP payload between C & Erlang

Garrett Smith g@REDACTED
Sat Sep 1 17:35:05 CEST 2012


On Sat, Sep 1, 2012 at 7:58 AM, Avinash Dhumane <avinash@REDACTED> wrote:
> This is my first ever shot at AMQP!
>
> A legacy "C" application needs to interoperate with Erlang application over
> AMQP (RabbitMQ) by exchanging native C-structs as payload.
>
> What do I need to do in Erlang-side application (because this is where I
> have maximum control) so that C-app sees the payload as structs and
> Erlang-app sees the payload as tuples?

If I was doing this, I'd first look closely at MessagePack:

http://msgpack.org/

Here's an example in C:

http://wiki.msgpack.org/display/MSGPACK/QuickStart+for+C+Language

and one in Erlang:

http://wiki.msgpack.org/display/MSGPACK/QuickStart+for+Erlang

Garrett



More information about the erlang-questions mailing list