2056
-
Upload
andrew-svetlov -
Category
Technology
-
view
2.581 -
download
0
Transcript of 2056
.http://2056.ru
2056.ru
MMORPG
(JavaScript + Flash)
(Python)
Python 3
ZeroMQ
Redis
MySQL
MsgPack
ZeroGW
ProcessBoss
ZeroGWChatUserUserBattleBattleBattleGlobalMap
Service Components
Battle2Chat User2Battle1User1
User2ChatBattle2User1Battle1Octopus1Octopus2
Node2
Node1
ZeroMQ Device
MySQL2MySQL1
FrontNode
ZeroGW
Redis 1
Redis 2
ZeroGW
Frontend server WebSocket (GET/POST/ )
ZeroMQ
json???
WebSocket Long Polling
ZeroGW: output
connection ID (CID)
CID UID
CID
, ..
ZeroGW: topic
ID
: , ZeroGW
(, GIL)
( )
ZeroMQ
1
, (sharding)
()
, ,
/
/
ZeroMQ
(msgpack)
Redis ,
MySQL , MySQL Redis.
Redis . Redis' , .
MySQL
()
MyISAM ( )
SQL .
MySQL key-value storage
JSON
Redis
Redis ( )
, + .
RPC (Request-Reply)
Notify (Push-Pull)
RPC ,
RPC () ,
Notify ,
-
,
collectd
, ..
Yaml
,
bossdzerogw
redis-namedb
redis-user
redis-chat
user-1
user-2
chat
octopus
, ..
- ...
, ,
5k ( RPG)
10k
( ).
,
ZeroMQ
Coffee script
JQuery
ECO templates
Canvas
Flash (ActionScript)
(SLOC)
Python: 33k (+2k)
Python tests: 20k
Coffee: 19k
Coffee tests: 5k
ActionScript: 19k
Yaml: 57k
C (OpenSource): 15k
Art: 1.5GB
?
.http://2056.ru