Upgrade to Pro — share decks privately, control downloads, hide ads and more …

N Tier Architecture for MMORPG

N Tier Architecture for MMORPG

I installed a private ragnarok server with replicated database for my university subject "Distributed System"'s group assignment lol.

Lecturer gave us like $100 Free Azure credit for this assignment and yeah

soulchild

April 24, 2015
Tweet

More Decks by soulchild

Other Decks in Technology

Transcript

  1. Massively Multiplayer Online Role-Playing Game able to support large numbers

    of players simultaneously mostly deployed using client-server architecture may
  2. Microsoft Azure Digital Ocean Amazon EC2 Self-Host USD 132/month USD

    5/month USD 99.5/month Static IP ~USD120/month Literature Review With lowest specification and same 1TB bandwidth allowance
  3. Literature Review Service Microsoft Azure Digital Ocean Description A rock-solid

    
 cloud platform for blue- sky thinking Deploy SSD cloud server in less than 55s with dedicated IP and 
 root access Price Expensive Cheapest Server Locations Amsterdam Dublin Hong Kong Singapore United States Europe Scalability Yes Yes Connectivity Slow Normal Ease of Configuration Easy Normal Transparency High High
  4. Service Amazon EC2 Self-Host Description Scalable, pay-as-you-go compute capacity in

    the cloud DIY Price Cheaper Most expensive Server Locations Singapore Sydney Santo Paulo Anywhere Scalability Yes No Connectivity Fast Depend on ISP Ease of Configuration Advance Difficult Transparency High Low Literature Review
  5. Microsoft Azure Digital Ocean Amazon EC2 Self-Host A rock-solid 


    cloud platform for blue-sky thinking Deploy SSD cloud server in less than 55s with dedicated IP and root access Scalable, pay-as- you-go compute capacity in the cloud DIY Expensive Cheapest Cheaper Most expensive Amsterdam Dublin Hong Kong Singapore United States Europe Singapore Sydney Santo Paulo Anywhere Yes Yes Yes No Slow Normal Fast Depend on ISP Easy Normal Advance Difficult High High High Low Literature Review
  6. Problem Statement We want to host our own game server

    We want to separate database and application server for better security and performance
  7. If the server is compromised, user data is compromised as

    well Server application + Database Client Hack
  8. If the server is corrupted/affected, user data is affected as

    well Server application + Database Client
  9. Database can only be accessed by application server through private

    network IP Client Server application Database Private network
  10. Installation of database server Database server apt-get install mysql-server ragnarokdb

    < item_db.sql! ragnarokdb < logs.sql! ragnarokdb < main.sql! ragnarokdb < mob_db.sql! ragnarokdb < mob_skill_db.sql
  11. Endpoints configuration Private network Public IP : 168.63.238.122 Private IP

    : 10.78.136.57 Private IP : 10.78.114.72 Login port : 6900 Char port : 6121 Map port : 5121 Public network