Best approach to a multiplayer game


I'm starting to develop multiplayer games in flex/as3. Currently I abuse of HTTPService class to make requests to the server in a turn based game. I don't know if it is ok using this component though.

And what if I need to make a massive multiplayer?

Can I have some tips around these matters? Like best approaches, components, etc.

WebSockets, although they appear to be the new hammer for all programmers to abuse at the moment it makes total sense to use in multiplayer games, there are many solution out there currently using the TCP protocol though it would be more beneficial to use UDP:

"UDP is really faster than TCP, and the simple reason is because it's non-existent acknowledge packet (ACK) that permits a continuous packet stream, instead of TCP that acknowledges a set of packets, calculatd by using the TCP window size and round-trip time (RTT)."

It is not essential you could still use any of the available TCP ones (although less performant would be 100x more performant than constant HTTP requests) and will leverage many advantages over HTTP (serialization of object {no more nasty XML}).