Hi All

I'm developing a massive cluster application that uses Hadoop RPC mechanism to communicate. Due to throughput issues I'd like to change parts of the communication to async mode and I thought of MINA. All message objects implement the Writable interface meaning they can write/read themselves from a DataOutput/DataInput. What do you think is the best strategy for implementing the ProtocolCodecFactory/Encoder/Decoder that would have the least array duplication/creation? I thought one of the best options would be to build an adapter between IoBuffer and DataInput/DataOuput since the methods are really quite the same. What do you suggest? is this the best approach? if so should I duplicate a class like SimpleBufferAllocator?

Regards
David Alves

Reply via email to