[erlang-questions] How to expose an Erlang module to external apps?

20 views
Skip to first unread message

Yash Ganthe

unread,
Oct 18, 2012, 11:20:27 AM10/18/12
to erlang-q...@erlang.org
Hi,

An Erlang module we are developing needs to be invoked from various applications written in different languages like .NET, Java, Perl, etc. What options do we have for exposing our module to teh external world? The other apps may possibly run on computers different than the one that runs the Erlang VM.

Thanks
Yash

Gleb Peregud

unread,
Oct 18, 2012, 11:29:27 AM10/18/12
to Yash Ganthe, erlang-q...@erlang.org
You can use multitude of options:
1. Ports
2. C-nodes
3. TCP communication
4. UDP communication
5. etc.

For TCP communication you can use multiple protocols:
1. Raw TCP sockets with length-prefixed packets
2. HTTP
3. XMPP
4. AMPQ
5. ZeroMQ
6. And many-many-many more

For TCP communication you can use different serialization options:
1. Erlang Binary Term format
2. BERT
3. MsgPack
4. Protocol Buffers
5. JSON
6. And many-many-many more

There are very many different options. Without some more details about
your needs it's hard to select one.

Best regards,
Gleb Peregud
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Reply all
Reply to author
Forward
0 new messages