Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

binary BERT protocol support #12

Closed
henry-hz opened this issue Feb 7, 2015 · 2 comments
Closed

binary BERT protocol support #12

henry-hz opened this issue Feb 7, 2015 · 2 comments

Comments

@henry-hz
Copy link

henry-hz commented Feb 7, 2015

Hi, let me suggest to implement the native binary support, so Erlang will shine and be able to receive many thousands of connections without the hard job of dealing with message conversion for every message. http://bert-rpc.org/

@bwegh
Copy link
Owner

bwegh commented Feb 11, 2015

Thanks for the suggestion,
Which connection are you thinking of?
Websocket we could just introduce another kind of encoding like wamp-bert.
Over TCP we should talk to Travendo so a bit gets reserved inside the TCP-Handshake for the protocol.

Anyway it looks very good and I am going to implement it.

Would you mind telling me what you are using it for, I am very interested in the use cases of Erwa.

bwegh added a commit that referenced this issue May 25, 2015
The new supported serialization is internally called
erlbin and raw_erlbin. This also a fix for issue #12 .
all messages will be converted to binary and back using
the erlang functions term_to_binary() and binary_to_term().
@bwegh
Copy link
Owner

bwegh commented May 25, 2015

It is not offically in the spec, yet you can enable it by setting the application env 'erlbin_number' for the raw transport.
For an example see test/roundtrip_SUITE.erl (init_per_suite/1 and pubsub_tcp/1).

@bwegh bwegh closed this as completed May 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants