hi,

how can i guarantee messages are processed in arrival order and
sequantially (one is processed after previous is completed) for
NioSocketAcceptor ?

i guess, as tcp guarantees packet order, for each IoSession message
order is guaranteed. but if messages are passed to IoHandler in a
multi-threaded manner there could be cases process order is different
from arrival order.

i've thought of passing a single thread executor to
NioSocketAcceptor's constructor but couldnt be sure if that will work
or hurt performance ? maybe i should leave NioSocketAcceptor
multi-threaded and as messages arrive put them in a single threaded a
work queue ?

any suggestions, ideas ?

thanks,
r a f t

Reply via email to