On 17/06/2011 18:22, Dan Di Spaltro wrote:
Hi,

I am trying to experiment around with a client for Hedwig in node.js. Is there a better doc for how to parse the protocol? Note: I am not familiar with Netty at all.
Unfortunately there's very little doc yet. This is something we are aware that we really need to fix.

*  it looks like there is a length framing?
* Is every request the hedwig server get's PubSubRequest, or is there a magic byte somewhere, that registers a handler.
Yes, to both. Every request is <packetlength:int><payload:PubSubRequest> and responses are similarly <packetlength:int><payload:PubSubResponse>. PubSub{Request,Response} are generated by protobufs. Im not sure if there are JS bindings for that. Actually, there's already a c++ client, in bookkeeper/hedwig-client/main/cpp/. Can node.js be extended in C?

These are just some questions I had after spending about 5 hrs looking at the source and futzing with the build system.

hw.bash script is pretty hard to understand, btw.
Yes, this is something else we need to fix. I'd prefer to get rid of hw.bash completely and replace it with a bin/hedwig which would allow you to start a server or a commandline client.

-Ivan

Reply via email to