<p dir="ltr">I'd have user state serviced by a thread per user. Then have separate game state serviced by another thread. Then use zmq or cloud Haskell for interconnect between the two states.</p>
<p dir="ltr">Scalability games then boils down to what cross sectional bandwidth you can get by optimizing the interconnect and the placement/locality of the state.</p>
<p dir="ltr">Scaling the number of client connections can be done independently.</p>
<p dir="ltr">Alexander</p>
<div class="gmail_quote">On Jul 9, 2014 7:40 PM, "Isak Hansen" <<a href="mailto:isak.hansen@gmail.com">isak.hansen@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Let's just imagine there aren't enough poker sites out there already and that it makes sense to build another one. Basically, there will be players connecting to one or more tables, most likely talking some kind of JSON based protocol with the server(s).<div>

<br></div><div><div>#1 - What's a good way to set up and maintain compressed and encrypted connections from the clients to my cluster? I've been wanting to try out websockets, think that'll do?<br></div></div>

<div><br></div><div>#2 - I'm new to Haskell and would appreciate thoughts on how to store and process game state. Imagine a plain application managing 1000 tables of poker, responding to player input (that magically appears) and timer events (e.g. folding players that fail to take action). What data structures and libraries should I be looking at here? Thoughts on concurrency and how I organize program flow?</div>

<div><br></div><div>#3 - I'm thinking of ZMQ to wire components together. Would I be better off basing my cluster on Cloud Haskell or some other library for distributed work?</div><div><br></div><div><br></div><div>Would love some quick pointers and feedback here, thanks in advance,</div>

<div>Isak</div><div><br></div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div>