Your SlideShare is downloading. ×
Server side game_development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Server side game_development

988

Published on

General server side game development concepts, why it is hard, what to use as server etc.

General server side game development concepts, why it is hard, what to use as server etc.

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
988
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
16
Comments
0
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Server Side Game Development is hard!
  • 2. Too many front end platforms -ios -android -browsers -flash
  • 3. Session is evil -Can not scale
  • 4. Long polling -Socket programming -Protocols -Ups!
  • 5. Database? -Read/Write is small -Not a good idea to use MySQL+Memcache -NoSQL shines
  • 6. Write your own server? Not a good idea
  • 7. Open Source alternatives -Reddwarf Server (Project Darkstar)
  • 8. Buy a good one? -Smartfox Server http://www.smartfoxserver.com/
  • 9. Smartfox Server The good -Less code via listener based API -Client API’s, no need for socket programming -Stable -Out of the box HTTP tunneling
  • 10. Smartfox Server The bad -2500 Euro / server / year -Not a Free Software
  • 11. Smartfox Server The Ugly - Does not scale!
  • 12. What others do? Social Game -Zynga -King.com -Wooga MMO’s -EA Games -Blizzard
  • 13. Wooga Open Source - https://github.com/wooga Wooga Github - Pocket Island - HTML5 game (Ruby, NodeJS) https://github.com/wooga/Pocket-Island - Lots of Ruby-Erlang-Redis-JS stuff - Wooga SlideShare http://www.slideshare.net/wooga
  • 14. NoSQL is your friend -Redis -Memcache -MongoDB -Hazelcast -CouchDB -Riak -Cassandra
  • 15. Wooga -Diamond Dash (4.6M DAU) -Monster World -Bubble Island -Brain Buddies (LAMP)
  • 16. LAMP -Brain Buddies, Bubble Island -Nginx instead of Apache -MySQL is fast enough
  • 17. Rails World Monster World - Started with Rails - MySQL -Not so useful, Farming games are not arcade games -Switched to Redis, now it rocks! Happy Hospital -Rails - Redis cluster -Fast enough but Redis is not RDB -Redis problems as main DB
  • 18. Magic Land - No DB is faster than no DB - S3, Erlang - Erlang Workers, S3 used for records - Stateful development is complex - Open sourced most of the erlang stuff used for this game in github StateFul
  • 19. Rails Again Pearls Peril - Rails, Redis (High score, Metadata, etc), Riak (All other stuff)
  • 20. Problems Software is easy, data is hard -Redis No backup, No slave -AWS Fast to create instance, it fails sometimes, Slow IO on EBS -JRuby Helps a lot as Concurrency libraries are great for threading in Java World
  • 21. Alternatives Write your own server - NodeJS - Java NIO, Akka, Netty - Erlang, Scala
  • 22. Questions?

×