1

Is it possible to use Sinatra using G-wan web server?

if it possible how to do it?

Kokizzu
  • 24,974
  • 37
  • 137
  • 233

2 Answers2

1

You can run Sinatra on G-WAN via CGI, like shown with the G-WAN extern.c or stream3.c examples used to execute external commands.

Gil
  • 3,279
  • 1
  • 15
  • 25
0

Until the (proxy mode/load bancer) is not explained, no, it's not possible to run sinatra on G-WAN

solisoft
  • 669
  • 4
  • 12
  • The reverse-proxy requires that the back-end is a server itself, and in the case of Sinatra, this server might be slower than G-WAN. As a result, using a reverse-proxy might not be the most efficient solution. – Gil Mar 16 '13 at 15:06
  • sinatra is fast too ... I can have requests under 5ms ... But I didn't test sinatra CGI mode ... If it have to reload libs each time I'm not sure it's the best way – solisoft Mar 22 '13 at 21:23
  • 5 ms is a very very long time (just check the loan.c example) so the problem is more about how many such requests you can serve **concurrently**. – Gil Mar 24 '13 at 10:53
  • I agree, but running as a cgi should be very much slowest, isn't it? As I said, I never used it using CGI module ... So maybe I'm wrong – solisoft Mar 24 '13 at 14:55
  • When in doubt, test. There's no substitute to results extracted from reality. – Gil Mar 26 '13 at 10:57