From: Tim Bennen Date: 2009-11-29T05:34:04+09:00 Subject: Which server component? Hello! I have the scenarion, that on the one hand, there are mobile devices which are the clients, on the other hand there is a server with ruby. The clients send the messages to the server witch JSON via a persistent TCP connection (it must be persistent). The server (ruby scripts) receive the messages and send a JSON answer string back to the client. My ruby tcp server is build up with this snippet of source code: http://segment7.net/projects/ruby/snippets/server.rb Now I like to run it on port 80/443 as a webservice, because the tcp server is not so scalable and I do not have any idea how to run it secure via ssl/tls. What卒s the best way to do this? The ruby-side ist pure ruby (not rails) with gems like Sequel, Validatable, JSON. Should I use an apache webserver mit Phusion Passenger or there are better ways that the server could make persistent tcp connections with security (SSL) to send/receive JSON messages? Thanks a lot in advance & Best Regards. -- Posted via http://www.ruby-forum.com/.