When i said i can't lose the data is, if the application drops the 
information i sended is lost, and im not sure if i can recover sending 
again the same command.

I need store it in somewhere, database, memcache, message queue,....

Maybe rabbitmq can do what i need.

I can create two channels for each port, ex "50000_in" and "50000_out" 
and subscrive the "50000_in" on port 10000, and in the internal port 
"50000_out", so everytime i put something from the port 10000 on 
"50000_in" the port "50000_out" get the data, and vice versa.

But this is another problem, i need know how many channels can be 
created with rabbitmq, because today i have 15k modems so 30k channels 
and this number is increasing...
-- 
Posted via http://www.ruby-forum.com/.