Hi all,
just thought id ask you guys for your thoughts on something i'm looking into doing.
Basically looking to develop a Server that will accept TCP connections. The clients will not be connected constantly, i.e the clients open connection, send data to the server, the server will send back ack, nak or some data and then the client closes.
The amount of clients the server will have to service will be around 1000-2000, but i would like the confidence of knowing it would work with more :-).
The connections from the clients will be totally random with regards to time thus, in theory there is a possibility that the server could get hit with 100s of requests at any instance in time.
So my question is what do you guys think the best route to take is for the server side sockets is ? Async ? Sync ?
Also another thing i should mention is the data the server receives will need to be pushed into a SQL database.
Look forward to any comments you have :-)
Loading
Sam HobbsPosted Dec 7, 2011, 1:02 PM
Sam HobbsPosted Dec 7, 2011, 2:02 PM
Lee TruemanPosted Dec 7, 2011, 1:05 PM
Lee TruemanPosted Dec 7, 2011, 11:49 AM
Sam HobbsPosted Dec 5, 2011, 3:03 PM
Lee TruemanPosted Dec 5, 2011, 1:30 PM
the client devices are little embedded micros, running a lightweight TCP/IP stack to enable TCP socket connectivity, thus we don't need/want the bloat of HTTP/HTTPS. I understand what you are saying, using a web-server and then using POST methods to send the data. But the HTTP is just waisted overhead that we don't need.
All i want to know is what is the prefered direction for server socket comms for this type of application ?
Sam HobbsPosted Dec 5, 2011, 1:11 PM
Lee TruemanPosted Dec 5, 2011, 5:27 AM
yes both ends will be development by us. The connection is using TCP sockets. There will be a low level binary protocol involved in the exchange between the clients and server. Data packets will be small, couple of hundred bytes max. There will be no use of web technologies i.e HTML or ASP, this needs to be a secure closed system, the data over TCP sockets will also be encrypted.
Sam HobbsPosted Dec 4, 2011, 4:37 PM