mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erinc Arikan <erincari...@gmail.com>
Subject Re: Writing scalable network applications with mina
Date Wed, 07 Apr 2010 21:24:56 GMT
I apologize for the late response. So it sounds like I need to use IOFuture

My synchronous calls are made by a remote producer tool to insert the
messages to Activemq instance on another server, and call returns the result
as fast as the message is processed. But not all the time response from the
call is being returned to the client by my server application, but still
mina application has to make sure that message is processed properly, that's
why that operation is synchronous by nature.

So should I use something like DefaultWriteFuture? Since I haven't used that
before,  I am not %100 sure which way to go though, is there any example
somewhere that I can look at? I checked MINA web site and I googled and
searched Nabble, I am unable to find anything similar.

Any help will be greatly appreciated.


On Mon, Mar 29, 2010 at 8:06 PM, Emmanuel L├ęcharny <elecharny@apache.org>wrote:

> On 3/30/10 1:21 AM, Erinc Arikan wrote:
>> Unfortunately I can't lower that processing time, application is supposed
>> to
>> authorize credit card transactions, and to do that it needs to make remote
>> calls to a credit card authorizer system and that's taking around 1000 ms
>> on
>> average. So I guess I will give the new settings a try tonight, and will
>> write a small test application to test that.
> You may want to do that asynchronlously, instead of waiting for the
> response.
> MINA is perfect for that.
> When the response from the remote server arrives, then you grab the
> associated session, and write the response to the client. No more problem
> with the number of clients you can handle in parallel...
> --
> Regards,
> Cordialement,
> Emmanuel L├ęcharny
> www.nextury.com

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message