Distributed Game Server Framework
See the code####firefly 分支gfirefly介绍
firefly-gevent 是firefly的gevent版本。相比现在的firefly版本使用的twisted,gevent更加的精简。
firefly-gevent结合了gevent的性能,封装了网络IO处理、数据库IO读写缓存、分布式进程间接口调用。这样使得游戏服务端的开发变得更加的轻松简单,开发者不必在面对这些的技术难题,专心致力于游戏玩法逻辑的开发。
省略了远程调用过程中添加回调函数callback的步骤。
你可以这样去写远程调用的方法
result = root.callChild("test_node",1,u'Root测试')
#这里不会阻塞的,在结果返回之前会执行别的协程
print result
#当结果返回的时候会继续往下执行
gfirefly开源地址:https://github.com/9miao/G-Firefly
gtwisted开源地址:https://github.com/9miao/gtwisted
<div id="main">
<div id="primary">
<div id="content" role="main">
</header>
<div class="entry-content">
<p align="left">Firefly, written in Python and based on Twisted framework development, is a distributed game server framework with free, open source, stable, rapid extension and hot update features. With development framework, database caching and other basic game server services encapsulating, it signicantly reduces game development working time thereby truely allowing its users to spend more time on gameplay logic implementation. It also can be used to build customized distributed framwork, and only having a corresponding configuration file modification demand.</p>
Advantages and Features
Framework Description
Framework Ideas
the most basic server is a continually running application. In a distributed game server, the features we need includes: monitoring client connections and other service processes’ message as well as connecting these service processes, and sometimes database connections and caching services are also required. It’s shown below:
Net connect works as client connection, root monitors other server processes’ message, and node connects other server processes, db database and caches. whether to monitor client connections and other service processes’ message as well as each server’s name and their connection relationship are all can be configured in config.json, thus developers could get their own customized distributed framework.
</div>
</div>
</div>
385 followers · starred Jun 2014
773 followers · starred Aug 2013
42 followers · starred Dec 2013
Distributed Game Server Framework
See the code####firefly 分支gfirefly介绍
firefly-gevent 是firefly的gevent版本。相比现在的firefly版本使用的twisted,gevent更加的精简。
firefly-gevent结合了gevent的性能,封装了网络IO处理、数据库IO读写缓存、分布式进程间接口调用。这样使得游戏服务端的开发变得更加的轻松简单,开发者不必在面对这些的技术难题,专心致力于游戏玩法逻辑的开发。
省略了远程调用过程中添加回调函数callback的步骤。
你可以这样去写远程调用的方法
result = root.callChild("test_node",1,u'Root测试')
#这里不会阻塞的,在结果返回之前会执行别的协程
print result
#当结果返回的时候会继续往下执行
gfirefly开源地址:https://github.com/9miao/G-Firefly
gtwisted开源地址:https://github.com/9miao/gtwisted
<div id="main">
<div id="primary">
<div id="content" role="main">
</header>
<div class="entry-content">
<p align="left">Firefly, written in Python and based on Twisted framework development, is a distributed game server framework with free, open source, stable, rapid extension and hot update features. With development framework, database caching and other basic game server services encapsulating, it signicantly reduces game development working time thereby truely allowing its users to spend more time on gameplay logic implementation. It also can be used to build customized distributed framwork, and only having a corresponding configuration file modification demand.</p>
Advantages and Features
Framework Description
Framework Ideas
the most basic server is a continually running application. In a distributed game server, the features we need includes: monitoring client connections and other service processes’ message as well as connecting these service processes, and sometimes database connections and caching services are also required. It’s shown below:
Net connect works as client connection, root monitors other server processes’ message, and node connects other server processes, db database and caches. whether to monitor client connections and other service processes’ message as well as each server’s name and their connection relationship are all can be configured in config.json, thus developers could get their own customized distributed framework.
</div>
</div>
</div>
385 followers · starred Jun 2014
773 followers · starred Aug 2013
42 followers · starred Dec 2013