On Tue, Mar 15, 2011 at 11:34 AM, Alexander Christian <[email protected]> wrote:
>
> Wouldn't make it more sense to do the balancing with OS/3rd party
> solutions?

Two solutions were proposed :
 1. hardware solution which could deal with all this stuff
 2. a software solution, which has been choosen.

The hardware solution was refused .. I am waiting for the reason. I guess
that a proxy on an other os will also be.

>
> Must it be the application itself doing the load balancing on two
> network-lines?!
The application is a jboss with services exposed has web services.

>
> What is the use-case behind?

An old protocol is used to connect two systems.  This is done through 2
physical lines with a backup/load balancing mode.
The server can talk now under TCP/IP.


This is changed using Web Services hosted on a jboss which have among other
operations to exchange information under established tcp/ip socket with a
server.

                           xxx  <------> socket <-------> server

      JBOSS     <--->
     WebService           xxxx  <------> socket <-------> server

The socket are established all the time, so the exchange session ""write
question / "read answer" has to be demultiplexed, a response could occur not
synchronized with the request.

I suppose I have such scenario :


             Handler
       Jboss         proxy       socket1        socket2       server
     |           |        |           |        |
     |---request-->|        |           |         |
     |           |         |            |         |
     |           |----write-->|            |         |
     |           |         | -----------write--------> |
     |            |         |            |         |
     |            |          |            |<--answer---|
     |            |          |            |         |
     |            | <-----handler.notify()----|             |
     |             |  --------read()---------> |             |
     |            |----|        |              |             |
     |             |    |findSession()       |             |
     |             |<---+         |             |             |
     | <--answer---|          |             |             |
     |             |          |             |            |
     |             |          |             |            |
     |             |         |             |            |
     |             |         |             |            |
     |             |         |             |            |

 Hope the courrier will adjust the lines ... ;)

>
> br,
> Alex
>
>
> On Tue, 15 Mar 2011 11:28:48 +0100, Christophe Delarue
> <[email protected]> wrote:
> > Hi users,
> >
> > I have to deal with a solution where my application is connected to a
> > server through two specialised lines.
> > A socket is opened on each lines.
> > One is the backup of the other.
> > Each are activ/activ on nominal time, to double the bandwith.
> >
> > I though I could use the reactor pattern of mina for the server to my
> > application way, but what can I use on the other way ?
> >
> > Client  -- asyn --------> socket      ----------------> server
> >               ---- asyn ---> socket      -----------------> server
> >
> > I'd like to find a solution which could deal automagically with line
> > break, timeout ...
> >
> > Is mina able to do this dual upload feature ?
> >
> > Thank's
> >
> > --
> > Christophe Delarue
> > mailto:[email protected]
> > 06 12 95 49 56



--
Christophe Delarue
mailto:[email protected]
06 12 95 49 56

Reply via email to