2056

download 2056

If you can't read please download the document

Transcript of 2056

.http://2056.ru

[email protected]

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

[email protected]