Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
Huh? On Thu, Apr 9, 2020 at 1:09 PM Weact wrote: > > > > Is this server ready for deployment for a chat application supporting 1mm > users or is it more in the prototype phase? > > > > We will be using group chat, roles, moderators and adding some unique chat > threading models for distributed

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Weact
Is this server ready for deployment for a chat application supporting 1mm users or is it more in the prototype phase? We will be using group chat, roles, moderators and adding some unique chat threading models for distributed groups. Thanks. >

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Emmanuel Lécharny
On 09/04/2020 16:01, Nitin Phuria wrote: Dear Jonathan, Anytime we write message to System-B session with session.write method the messageSent event has to be generated with it actually gets written on TCP/IP The messageSent event is only generated when the message has been fully

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Emmanuel Lécharny
On 09/04/2020 15:00, Jonathan Valliere wrote: The ExecutorFilter only works for the Server receiver side. Actually, it could be used on the client side too, but it makes little sense, as the client is not supposed to receive heavy load from the server (of course, there might be use cases

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
lliere [mailto:jon.valli...@emoten.com] > *Sent:* 09 April 2020 20:03 > *To:* Nitin Phuria > *Cc:* users@mina.apache.org > *Subject:* Re: MINA: ExecutorFilter on NioSocketConnector > > > > Every IoSession is bound to one Processor Thread. So only by creating > more IoSess

RE: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Nitin Phuria
[mailto:jon.valli...@emoten.com] Sent: 09 April 2020 20:03 To: Nitin Phuria Cc: users@mina.apache.org Subject: Re: MINA: ExecutorFilter on NioSocketConnector Every IoSession is bound to one Processor Thread. So only by creating more IoSessions can you take advantage of multiple Processor Threads

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
whole or part), in any manner, is strictly prohibited and actionable at > law. The recipient acknowledges that emails are susceptible to alteration > and their integrity cannot be guaranteed and that Company does not > guarantee that any e-mail is virus-free and accept no liability for any

RE: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Nitin Phuria
@emoten.com] Sent: 09 April 2020 19:34 To: Nitin Phuria Cc: users@mina.apache.org Subject: Re: MINA: ExecutorFilter on NioSocketConnector How far are the servers? TCP Packet loss could explain this. You can get the Queue size from the IoSession object. On Thu, Apr 9, 2020 at 10:02

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
l.”* > > > > *From:* Jonathan Valliere [mailto:jon.valli...@emoten.com] > *Sent:* 09 April 2020 18:31 > *To:* Nitin Phuria > *Cc:* Nitin Phuria; users@mina.apache.org > *Subject:* Re: MINA: ExecutorFilter on NioSocketConnector > > > > The ExecutorFilter only wo

RE: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Nitin Phuria
:31 To: Nitin Phuria Cc: Nitin Phuria; users@mina.apache.org Subject: Re: MINA: ExecutorFilter on NioSocketConnector The ExecutorFilter only works for the Server receiver side. When you say the responses are slow, what do you consider slow? All writes are put into a queue dedicated

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
rom: Jonathan Valliere [mailto:jon.valli...@emoten.com] > Sent: 09 April 2020 18:09 > To: Nitin Phuria > Cc: users@mina.apache.org > Subject: Re: MINA: ExecutorFilter on NioSocketConnector > > Mina is a queue and flush framework. All writes are queued up and scheduled > later u

RE: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Nitin Phuria
us transmitted by this email.” -Original Message- From: Jonathan Valliere [mailto:jon.valli...@emoten.com] Sent: 09 April 2020 18:09 To: Nitin Phuria Cc: users@mina.apache.org Subject: Re: MINA: ExecutorFilter on NioSocketConnector Mina is a queue and flush framework. All writes

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
Mina is a queue and flush framework. All writes are queued up and scheduled later using the poll/kqueue system. The ExecutorFilter uses threading to process incoming messages using a pool of threads instead of the reactor/processor thread. This frees the processor thread to do IO. Have you

MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Nitin Phuria
Dear All, We have Server developed using MINA 2.0.16 where it connects to two other systems say System-A and System-B. The connectivity with both these system is persistence which means our server connects and create only single session with each of these systems and on the