by WesleyJohnson · 16y ago · 0 comments
Running into tons of stumbling blocks primarily around keeping the app near realtime and stable. It's GWT on the front-end, but .NET webservices on the backend. The existing flash based system has a custom server service and periodically dumps logs into SQL Server. We started off trying to write directly to SQL with our version but it wasn't fast enough and we were running into too many contention issues. Now we're throwing Memcached in the middle and it's much faster, but we're not entirely out of the woods.
I'm thoroughly convinced HTTP just shouldn't be used for chat applications.
From http://xmpp.org/extensions/xep-0124.html This specification defines a transport protocol that emulates the semantics of a long-lived, bidirectional TCP connection between two entities (such as a client and a server) by efficiently using multiple synchronous HTTP request/response pairs without requiring the use of frequent polling or chunked responses.
Drop in an existing XMPP chat server (or write your own if you must) and you should be good to go. A lot of high-volume sites are using this implementation for their web-based chat services.