August 2007
July 2007
PARLEY
by pvergainPARLEY is an API for writing Python programs that implement the Actor model of distributed systems, in which lightweight concurrent processes communicate through asynchronous message-passing. Actor systems typically are easier to write and debug than traditional concurrent programs that use locks and shared memory.
PARLEY can run using either traditional native threads, greenlets (lightweight threads), or Stackless Python's tasklets. A program written using PARLEY can choose between these models by changing a single line of code.
Usage
Messages in PARLEY can be arbitrary objects, but the standard message format is a 4-tuple: (tag, sender, args, kwargs). A typical way to handle such a message is to look up a function based on the tag; pass args and kwargs as parameters to the function (args being position parameters, and kwargs being keyword parameters); and to send the return value of the function as a message to the original sender.
You can check out the latest version from Subversion using the following command:
svn co http://artdent.homelinux.net/parley/trunk
November 2006
October 2006
September 2006
輕鬆實現可伸縮性,容錯性,和負載平衡的大規模多人在線系統
by YukuanMark & 1 other本文以我的OpenPoker項目為例介紹另一種構建大規模多人在線系統的方案。OpenPoker是一個大型多人撲克網遊,內建支持了容錯能力,負載平衡和無限制的規模大小。OpenPoker的源代碼遵循GPL協議可以