Overview
Features
Download
Documentation
Community
Add-Ons & Services

HTTPServer vs SocketReactor

A general discussion forum.

HTTPServer vs SocketReactor

Postby R1K0 » 25 Nov 2010, 16:24

Hi all. I'm noob in POCO so I have a number of questions :)
But this is the first one:

I want to make a server for webapp. This will be a flash game. And what you can advice me to use: HTTPServer or SocketReactor. I am asking about performance, 'cos I think many users want to play my game (ok, I hope :) ) and thats why I need for realy good server app.

PS. Sorry for bad english :)
R1K0
 
Posts: 6
Joined: 24 Nov 2010, 13:51
Location: Russia

Re: HTTPServer vs SocketReactor

Postby aderouineau » 28 Nov 2010, 16:51

Why create a server "from scratch" for that ? Wouldn't NGINX, Lighty or Apache be good ?
aderouineau
 
Posts: 163
Joined: 18 May 2009, 17:38

Re: HTTPServer vs SocketReactor

Postby R1K0 » 29 Nov 2010, 09:22

For practice :)
I want to test it and, of course, I know about free http-servers.

PS. My question was about HTTPServer vs SocketReactor

PPS. And, if I use apache - what about performance for web game?
R1K0
 
Posts: 6
Joined: 24 Nov 2010, 13:51
Location: Russia

Re: HTTPServer vs SocketReactor

Postby aderouineau » 29 Nov 2010, 22:54

The game, whether flash or JavaScript, is run in the browser. So it does not really concern the web server.

It is also why choosing HTTPServer or SocketReactor does not really matter in terms of performance.

The advantage of using SocketReactor is shared memory : the different requests are serialized in a single thread so you can share things between client requests without using mutexes (which would be the case for HTTPServer that relies on multi-threading), if need be.

However HTTPServer gives you the necessary tools to deal with HTTP requests right out of the box.
aderouineau
 
Posts: 163
Joined: 18 May 2009, 17:38


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests