SlideShare a Scribd company logo
1 of 36
• Happy Me
• Architecture Overview
• Architecture Detail
Object Management System
Server-Client Data Synchronization
Network Message Dispatching System
• MMO casual game
• Room-based active server
• Web-based Unity3D client
• Run on social platform
• 3 system and framework developers
• 4 game developers
• 12 months of development
Database
Game Servers
Client
Internet
Server Side Client Side
Game Logic
Player
Data
Player
Data
Player
Data
Object
Management
System
Network Message
Dispatching
System
Auto
Synchronization
Framework
MAKE OUR LIFE EASIER
• Object management system
 MVC design pattern
 Dynamic data
• Auto synchronization framework
 Truly automatic («Set» and forget style)
 Synchronize the delta difference only
• Network message dispatching system
 Custom structure message
 Easy to register messages and invoke handlers
Model
View
Controller
(gameplay logic)
Database
Network
Messages
View
Controller
(graphic logic)
Server Side Client Side Unity3D
3D
Models
Database
Model
Model
View
Controller
Game
Objects
Object
Views
Game
Logic
Modules
Rooms
Game
Objects
Object
Views
Game
Logic
No-SQL
(Storage)
Network
Messages
Object
Views
Graphic
Logic
Server Side Client Side
SQL
(Ranking, Log)
Database
Game
Objects
Modules Modules
Rooms Rooms
Object
Rooms
Object
Views
Modules
Game
Objects
• A container of properties
• Serialize to and deserialize from JSON
• Hierarchy relationship (parent-child)
Object
Guid
Property 1
Property 2
Property Meta Data
• Tags
• Persistent
• Client transfer
• Type
• Long
• Name
• “property 2”
• Version
• 568
Object
Unit
GameObject
DataObject
Player
DecoItem
Pet
UseItem
ClothItem
Item
Quest
Job
PlayerViewDecoView PetView
ObjectView
Module
MainGame
Authen
HomeDeco
SyncData Room
Lobby Public Personal
Object
Manager
Pros
• MVC design pattern practice
• Fully customizable property system
• Manage game world into one single
system
Cons
• Challenge to manage huge number of
objects
Server
RoomPlayer.Position = (10, 20)
Player.OnUpdatePosition(10, 20)
{
model.MoveTo(10, 20);
}
Client
Synchronization
Scheduler
Other
Schedulers
Message
Processor
ROOM
• Process messages
from clients
• Send or broadcast
messages to clients
• Synchronize data
changes between
server and clients
• Update status
• Other duties…
Personal
Room
Coffee
Room
Downtown
Room
Sync
Other
Sync
Thread Pool
Other
Sync
Other
Sync
Sync
Other
ROOMS
TASK
QUEUES
WORKERS
Thread
1 second
SYNCHRONIZATION
SCHEDULER
OTHERS SCHEDULER
1/10 second
Other Task
Sync Task
Sync Task
Other Task
Sync
Task
Other
Task
TASK QUEUE
WORKER
Object
Position
Energy
Gold
Change Set
SYNCHRONIZATION
SCHEDULER
SetProperty(Position, (1, 2))
Sync
Task
Pros
• Automatic synchronization property changes
• Optimal data transfer
• Best use for active server game
Cons
• Overhead to determine what has changed
since last sync.
Login
- Username
- Password
Synchronize
- Type
- Properties
Buy Item
- ItemType
- Quantity
Chat
- Message
RequestFriend
- FriendGuid
Serializer
(Thrift, Protobuf, Json, XML)
Network package
Encryption
Server
Send
Client
Receive
Serialize
Deserialize
Login
- Username
- Password
Login
- Username
- Password
OnAuthen
OnMove
OnRun
Login
Authen
Move
Run
Message
Handlers
OnLogin
Pros
• Meaningful message by define custom
structure
• Familiar usage as common GUI system
(MFC, WinForm)
• Share message definition between server
and client
• Easy to apply encryption
Cons
• Unknown
• Seamless MVC framework across server
and client
• Address the most common difficulty in
design active server : the synchronization
• Base framework environment for adapting
any gameplay
A practical architecture design for mmo casual game
A practical architecture design for mmo casual game

More Related Content

Similar to A practical architecture design for mmo casual game

A Practical Architecture Design for MMO Casual Game
A Practical Architecture Design for MMO Casual GameA Practical Architecture Design for MMO Casual Game
A Practical Architecture Design for MMO Casual Game
action.vn
 
MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...
MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...
MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...
sameh samir
 

Similar to A practical architecture design for mmo casual game (20)

A Practical Architecture Design for MMO Casual Game
A Practical Architecture Design for MMO Casual GameA Practical Architecture Design for MMO Casual Game
A Practical Architecture Design for MMO Casual Game
 
SCORCH: Tying it All Together
SCORCH: Tying it All TogetherSCORCH: Tying it All Together
SCORCH: Tying it All Together
 
AWS re:Invent 2016: [REPEAT] How EA Leveraged Amazon Redshift and AWS Partner...
AWS re:Invent 2016: [REPEAT] How EA Leveraged Amazon Redshift and AWS Partner...AWS re:Invent 2016: [REPEAT] How EA Leveraged Amazon Redshift and AWS Partner...
AWS re:Invent 2016: [REPEAT] How EA Leveraged Amazon Redshift and AWS Partner...
 
AWS re:Invent 2016| GAM301 | How EA Leveraged Amazon Redshift and AWS Partner...
AWS re:Invent 2016| GAM301 | How EA Leveraged Amazon Redshift and AWS Partner...AWS re:Invent 2016| GAM301 | How EA Leveraged Amazon Redshift and AWS Partner...
AWS re:Invent 2016| GAM301 | How EA Leveraged Amazon Redshift and AWS Partner...
 
MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...
MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...
MSF: Sync your Data On-Premises And To The Cloud - dotNetwork Gathering, Oct ...
 
Christian Corsano (Io-Interactive) - Hitman – the first episodic AAA game and...
Christian Corsano (Io-Interactive) - Hitman – the first episodic AAA game and...Christian Corsano (Io-Interactive) - Hitman – the first episodic AAA game and...
Christian Corsano (Io-Interactive) - Hitman – the first episodic AAA game and...
 
Christian Corsano, Io Interactive
Christian Corsano, Io InteractiveChristian Corsano, Io Interactive
Christian Corsano, Io Interactive
 
Breaking through silos - From multi to true crossplatform using the cloud
Breaking through silos - From multi to true crossplatform using the cloudBreaking through silos - From multi to true crossplatform using the cloud
Breaking through silos - From multi to true crossplatform using the cloud
 
Gam301 Real-Time Game Analytics with Amazon Redshift, Amazon Kinesis, and Ama...
Gam301 Real-Time Game Analytics with Amazon Redshift, Amazon Kinesis, and Ama...Gam301 Real-Time Game Analytics with Amazon Redshift, Amazon Kinesis, and Ama...
Gam301 Real-Time Game Analytics with Amazon Redshift, Amazon Kinesis, and Ama...
 
Server 2016 sneak peek
Server 2016 sneak peekServer 2016 sneak peek
Server 2016 sneak peek
 
Massively Social != Massively Multiplayer
Massively Social != Massively MultiplayerMassively Social != Massively Multiplayer
Massively Social != Massively Multiplayer
 
Behind the Scenes: Deploying a Low-Latency Multiplayer Game Globally
Behind the Scenes: Deploying a Low-Latency Multiplayer Game GloballyBehind the Scenes: Deploying a Low-Latency Multiplayer Game Globally
Behind the Scenes: Deploying a Low-Latency Multiplayer Game Globally
 
[KGC 2012] Online Game Server Architecture Case Study Performance and Security
[KGC 2012] Online Game Server Architecture Case Study Performance and Security[KGC 2012] Online Game Server Architecture Case Study Performance and Security
[KGC 2012] Online Game Server Architecture Case Study Performance and Security
 
Marshall Magee - Build a dynamic website for less than $1.55/month using S3 a...
Marshall Magee - Build a dynamic website for less than $1.55/month using S3 a...Marshall Magee - Build a dynamic website for less than $1.55/month using S3 a...
Marshall Magee - Build a dynamic website for less than $1.55/month using S3 a...
 
Photon Session / Unite12 Conference
Photon Session / Unite12 ConferencePhoton Session / Unite12 Conference
Photon Session / Unite12 Conference
 
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
 
Game Programming - Cloud Development
Game Programming - Cloud DevelopmentGame Programming - Cloud Development
Game Programming - Cloud Development
 
Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)
Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)
Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)
 
Dutch Lotus User Group 2009 - Domino Tuning Presentation
Dutch Lotus User Group 2009 - Domino Tuning PresentationDutch Lotus User Group 2009 - Domino Tuning Presentation
Dutch Lotus User Group 2009 - Domino Tuning Presentation
 
Server Architecture.pptx
Server Architecture.pptxServer Architecture.pptx
Server Architecture.pptx
 

More from Son Aris

Vietnam Digital Marketing Market Overview
Vietnam Digital Marketing Market OverviewVietnam Digital Marketing Market Overview
Vietnam Digital Marketing Market Overview
Son Aris
 
Mobile Game In China 2013-2014
Mobile Game In China 2013-2014Mobile Game In China 2013-2014
Mobile Game In China 2013-2014
Son Aris
 
Japans social gaming market 2013
Japans social gaming market 2013Japans social gaming market 2013
Japans social gaming market 2013
Son Aris
 
In mobi app_insight_report
In mobi app_insight_reportIn mobi app_insight_report
In mobi app_insight_report
Son Aris
 
Ogdc 2013 am i ready to go startup
Ogdc 2013 am i ready to go startupOgdc 2013 am i ready to go startup
Ogdc 2013 am i ready to go startup
Son Aris
 
Ogdc 2013 zing me mobile
Ogdc 2013 zing me mobileOgdc 2013 zing me mobile
Ogdc 2013 zing me mobile
Son Aris
 
Ogdc 2013 the importance of in game event
Ogdc 2013 the importance of in game eventOgdc 2013 the importance of in game event
Ogdc 2013 the importance of in game event
Son Aris
 
Ogdc 2013 spine anim20131
Ogdc 2013 spine anim20131Ogdc 2013 spine anim20131
Ogdc 2013 spine anim20131
Son Aris
 
Ogdc 2013 psychology applied 2013
Ogdc 2013 psychology applied 2013Ogdc 2013 psychology applied 2013
Ogdc 2013 psychology applied 2013
Son Aris
 
Ogdc 2013 prototyping mobile games
Ogdc 2013 prototyping mobile gamesOgdc 2013 prototyping mobile games
Ogdc 2013 prototyping mobile games
Son Aris
 
Ogdc 2013 network stragegy for mmo game
Ogdc 2013 network stragegy for mmo gameOgdc 2013 network stragegy for mmo game
Ogdc 2013 network stragegy for mmo game
Son Aris
 
Ogdc 2013 monetization experience
Ogdc 2013 monetization experienceOgdc 2013 monetization experience
Ogdc 2013 monetization experience
Son Aris
 
Ogdc 2013 mobile game trend in southeastasia
Ogdc 2013 mobile game trend in southeastasiaOgdc 2013 mobile game trend in southeastasia
Ogdc 2013 mobile game trend in southeastasia
Son Aris
 
Ogdc 2013 lets remake the wheel
Ogdc 2013 lets remake the wheelOgdc 2013 lets remake the wheel
Ogdc 2013 lets remake the wheel
Son Aris
 
Ogdc 2013 how to distribute content touser for social and mobile game
Ogdc 2013 how to distribute content touser for social and mobile gameOgdc 2013 how to distribute content touser for social and mobile game
Ogdc 2013 how to distribute content touser for social and mobile game
Son Aris
 
Ogdc 2013 how retention rate affects aniworld
Ogdc 2013 how retention rate affects aniworldOgdc 2013 how retention rate affects aniworld
Ogdc 2013 how retention rate affects aniworld
Son Aris
 
Ogdc 2013 game design problem solving
Ogdc 2013 game design problem solvingOgdc 2013 game design problem solving
Ogdc 2013 game design problem solving
Son Aris
 
Ogdc 2013 choosing the right database for social mobile game
Ogdc 2013 choosing the right database for social mobile gameOgdc 2013 choosing the right database for social mobile game
Ogdc 2013 choosing the right database for social mobile game
Son Aris
 
Ogdc 2013 cross platform game development with html5
Ogdc 2013 cross platform game development with html5Ogdc 2013 cross platform game development with html5
Ogdc 2013 cross platform game development with html5
Son Aris
 

More from Son Aris (20)

Main land china mobile app market 2014. what you need to know
Main land china mobile app market 2014. what you need to knowMain land china mobile app market 2014. what you need to know
Main land china mobile app market 2014. what you need to know
 
Vietnam Digital Marketing Market Overview
Vietnam Digital Marketing Market OverviewVietnam Digital Marketing Market Overview
Vietnam Digital Marketing Market Overview
 
Mobile Game In China 2013-2014
Mobile Game In China 2013-2014Mobile Game In China 2013-2014
Mobile Game In China 2013-2014
 
Japans social gaming market 2013
Japans social gaming market 2013Japans social gaming market 2013
Japans social gaming market 2013
 
In mobi app_insight_report
In mobi app_insight_reportIn mobi app_insight_report
In mobi app_insight_report
 
Ogdc 2013 am i ready to go startup
Ogdc 2013 am i ready to go startupOgdc 2013 am i ready to go startup
Ogdc 2013 am i ready to go startup
 
Ogdc 2013 zing me mobile
Ogdc 2013 zing me mobileOgdc 2013 zing me mobile
Ogdc 2013 zing me mobile
 
Ogdc 2013 the importance of in game event
Ogdc 2013 the importance of in game eventOgdc 2013 the importance of in game event
Ogdc 2013 the importance of in game event
 
Ogdc 2013 spine anim20131
Ogdc 2013 spine anim20131Ogdc 2013 spine anim20131
Ogdc 2013 spine anim20131
 
Ogdc 2013 psychology applied 2013
Ogdc 2013 psychology applied 2013Ogdc 2013 psychology applied 2013
Ogdc 2013 psychology applied 2013
 
Ogdc 2013 prototyping mobile games
Ogdc 2013 prototyping mobile gamesOgdc 2013 prototyping mobile games
Ogdc 2013 prototyping mobile games
 
Ogdc 2013 network stragegy for mmo game
Ogdc 2013 network stragegy for mmo gameOgdc 2013 network stragegy for mmo game
Ogdc 2013 network stragegy for mmo game
 
Ogdc 2013 monetization experience
Ogdc 2013 monetization experienceOgdc 2013 monetization experience
Ogdc 2013 monetization experience
 
Ogdc 2013 mobile game trend in southeastasia
Ogdc 2013 mobile game trend in southeastasiaOgdc 2013 mobile game trend in southeastasia
Ogdc 2013 mobile game trend in southeastasia
 
Ogdc 2013 lets remake the wheel
Ogdc 2013 lets remake the wheelOgdc 2013 lets remake the wheel
Ogdc 2013 lets remake the wheel
 
Ogdc 2013 how to distribute content touser for social and mobile game
Ogdc 2013 how to distribute content touser for social and mobile gameOgdc 2013 how to distribute content touser for social and mobile game
Ogdc 2013 how to distribute content touser for social and mobile game
 
Ogdc 2013 how retention rate affects aniworld
Ogdc 2013 how retention rate affects aniworldOgdc 2013 how retention rate affects aniworld
Ogdc 2013 how retention rate affects aniworld
 
Ogdc 2013 game design problem solving
Ogdc 2013 game design problem solvingOgdc 2013 game design problem solving
Ogdc 2013 game design problem solving
 
Ogdc 2013 choosing the right database for social mobile game
Ogdc 2013 choosing the right database for social mobile gameOgdc 2013 choosing the right database for social mobile game
Ogdc 2013 choosing the right database for social mobile game
 
Ogdc 2013 cross platform game development with html5
Ogdc 2013 cross platform game development with html5Ogdc 2013 cross platform game development with html5
Ogdc 2013 cross platform game development with html5
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

A practical architecture design for mmo casual game

Editor's Notes

  1. Review lại flow