users@grizzly.java.net

Independent asynchronous read & write.

From: Piotr Bazan <bazi_at_world.pl>
Date: Thu, 10 Jan 2008 20:48:57 +0100

Hey guys,

Scenario I have is:

- 400 clients (400 or more channels opened)
- many requests per channel (keep-alive) - client side sends a lot of
requests asynchronously waiting for responses
- server side request processing time short (< 100 ms)

which one do you think is the preferable one to make reads and writes
totally independent of each other? I can think of 3 now:

1. one selector Handler (not really independent)
2. two separate selector handlers - custom WriteSelectorHandler &
ReadSelectorHandler
3. two different controllers

Any suggestions?

Thanks,
Piotr