This is my problem.

I have a universe of 10k gprs modems connecting on my server, they
connect on the same port and ip. After the connection, the modem send a
identification string, with this string i can authenticate the modem and
create a internal tcp port, with this port my internal application can
send data to the modem and the modem to the application. This is the
architecture that we have today but is using a closed source software
and its giving us alot of trouble.

So im thinking in do this with EventMachine:

One eventmachine server listening on port 10000 (where the gprs modems
will connect).
x eventmachine servers based on the gprs modems registred on database.

What i need is to communicate between the port 10000 and the internal
port, need to be secure connection, i cant lose the data, maybe
RabbitMQ, but everytime i try to use it i get errors .... >.<
And i dont want to create another eventmachine server to communicate
with port 10000 and to comunicate with the internal port, more 2 tcp
servers per connection.

I need get 10k connections per server and after this i gonna use a load
balancer

Bellow is a picture of the architecture:
http://www.uploadimagens.com/upload/6dc073f681d0b6ef2210406e8016e6ea.jpeg

Anyone sugest anything better?
Help?
-- 
Posted via http://www.ruby-forum.com/.