Reading directly through a network channel from memcached
Is there a way to read directly from the network channel for the objects
stored in memcached? In one of my projects, I am using MappedByteBuffer
which I am planning to store in memcached as objects. I do know that
MappedByteBuffer is not intended to store remotely and retrieve and its
sole purpose is only for in-memory mapping for a file. But I wanted to
give it a try and measure the performance hit. Hence, trying to find a way
to serialize MappedByteBuffer.
If I have handle to network channel, I could write the mappedbytebuffer
directly to memcached object. And from the other end, I could read from
the network channel directly to recreate the mappedbytebuffer again. Any
pointers in this regard would be great.
No comments:
Post a Comment