So far have just created MINA based Server applications. Was
prototyping a sample application and though
about asking MINA community about the design. No intentions to
re-invent the wheel :-)

Requirements
1. Client should be able to send a very high number of messages and
process the responses.
2. Looking at a min. rate of 500 packets/sec (not much as compared to
what MINA can provide)
3. Have to keep CPU usage in control :-)

Here is my thought process
1. Write network layer with MINA (app can be TCP/UDP)
2. Write a master worker which shall distribute work to slave workers
(threads responsible for sending messages on network). They
    shall send request and process the response as well.

I am sure somebody must have had implemented something similar

Here is where I look for expert opinion
1. How to efficiently implement the Slave worker (actual message
sender) and correlate the responses (for UDP)
2. How to efficiently implement work distribution and result
correlation between master and slave threads.

In a nutshell, want to write a Load-generator based on MINA and
demonstrate re-usability of codecs to my team.
The reason why I need to have this feedback to master thread is, to
provide a way for any automated testing tool
to prepare a report.

TIA
ashish

Reply via email to