SlideShare a Scribd company logo
MongoDB in KIXEYE Analytics
Ben Goswami
Game Play
           BP Video clips ( http://www.youtube.com/watch?v=uUHzppVn8WM)




©2011 Kixeye, Private and Confidential
Agenda


       • Data scaling problems at KIXEYE analytics and
               what technologies we use
       • Example application: Cheater Detection
               Engine
       • How MongoDB helped us to solve it


©2011 Kixeye, Private and Confidential
Game Play
               BP Attack Video (https://www.youtube.com/watch?v=qud_-18D2MU)




©2011 Kixeye, Private and Confidential
Game Play and Data
       • Games generate lots of click data

       • Click = event
                 o      time of the event
                 o      what happened before or after
                 o      how the events are correlated



©2011 Kixeye, Private and Confidential
Attack: {
  attacker : {
                   user:123
                   player_level: 31
                   fleet:
                        {
                           1:{
                                   Weapons: {
                                      name:“Ripper Cannon IV”
                                      damage:306
                                         accuracy:55
                                    }
                                 armors:{
                                     }
                                     …
                              }
                           2: {
                               }
_id" : ObjectId("506e23001d4524122c00004b"), "ip" : "10.54.72.206", "dt" :{ "_id" :
ObjectId("506e23001d4524dd2b0000bd"), "ip" : "10.54.72.206",
                         }
"&attacker_level=42&defender=0&defender_ext=salvage&defender_level=25&attack_type=PVE&attacking_
               }
units=%7b%224071%22%3a%5b5%2c3%2c0%5d%7d&defending_units=%7b%221040%22%3a%5b4%2c
    defender: {
0%2c4%5d%2c%221060%22%3a%5b1%2c0%2c1%5d%7d&attacking_shipconfig=%7b%22ships%22%3a
    }
%5b%7b%22armors%22%3a%5b333%2c333%2c333%2c333%5d%2c%22weapons%22%3a%5b134%2c1
    attack_time: 100354563
34%2c193%2c134%2c134%2c134%2c134%2c134%5d%2c%22specials%22%3a%5b542%2c561%2c571
    attack_duration:290
%2c501%5d%2c%22hullID%22%3a4071%2c%22tacticalModules%22%3a%5b%5d%2c%22actives%22%3
    sector:7
a%7b%22hp%22%3a9317.68457%2c%22rank%22%3a4%2c%22fltp%22%3a5%2c%22bid%22%3a54834
  …
79%2c%22f%22%3a0%2c%22id%22%3a110%2c%22flt%22%3a5%2c%22vxp%22%3a10.858466%7d%7
d%2c%7b%22armors%22%3a%5b333%2c333%2c333%2c333.. "stage" : "new" }
  }
How much data?

       •Multi TBs / month (4-5x in next 6 months)

       •Critical : Volume reads with speed

       •< 1% data has actionable intelligence




©2011 Kixeye, Private and Confidential
Mongo DB in gaming industry
MongoDB in KIXEYE


       •Why:
         – fast read + writes for high volume
         – Document based architecture, schema less
         – Indexing , auto failover, auto sharding
       •Where:
         – Games , KIXEYE Platform
         – Analytics, Logging


©2011 Kixeye, Private and Confidential
Data technologies at Analytics

     Technology                          Data Volume   Query Type    I/O speed


     MySQL                               Small         Adhoc +       Read fast, only
                                         < 300 GB      Pre defined   Aggregated data
     Mongo                               Mid           Predefined    Read + Write speed
                                         < 2 TB                      fast

     Hadoop      X-Large                               Adhoc         Read slow
     (Hive+HDFS) 2 TB+                                               writes: only insert
                                                                     no update



©2011 Kixeye, Private and Confidential
An Example Application

       Cheater Detection engine for games:
         How mongoDB helped us




©2011 Kixeye, Private and Confidential
A simple backyard at start in BYM
Currency is time or $ or both




©2011 Kixeye, Private and Confidential
Mongo DB in gaming industry
Mongo DB in gaming industry
Sample record

       •       4kb nested jason block
       •       base = {
                base_name: “sweet_mango_db”
                    resources {
                                               1: { name: "storage silo"
                                                        level: 5,
                                                        mode:“built"
                                                        time:123456902
                                               2: { …
                                         ..}
                        ...}
       ...} ..}
©2011 Kixeye, Private and Confidential
How people cheat?



       • Each upgrade or repair
               takes pre defined time

       • if time+payment < predefined time = cheater
       • victims chain create snowball effect

©2011 Kixeye, Private and Confidential
..and why they cheat...




©2011 Kixeye, Private and Confidential
Data volume for cheater detection

          • 16Mil * 50 * 10 * 3
            *....
          • multiple time based
            snapshots
          • 0.01 % cheaters
          • Detect < 5 mins
          • That's searching
                  through lot of data
                  fast

©2011 Kixeye, Private and Confidential
.. and boss told


             • Catch and auto
                    ban cheaters

             • Don't label a good
                    guy a cheater




©2011 Kixeye, Private and Confidential
..team was ready for the challenge



    • Speed+Accuracy of
           application

    • Technology evalauation



©2011 Kixeye, Private and Confidential
MongoDB fits the requirement


       • read writes are fast because memory mapped
               files compared to mysql+memcache or hbase
       • Unstructured data => need schema less
       • indexing on a nested data element



©2011 Kixeye, Private and Confidential
.. more on why mongo


       • Auto purging thru TTL
       • Auto sharding during traffic spikes
       • Binary data support, fast uncompression
       • Capped collection: writes faster



©2011 Kixeye, Private and Confidential
Development decision points

       • Old map-reduce (prior to 2.2) vs New
               Aggregation framework
       • Global write locks removal in 2.2
       • Lazy and Non lazy inserts



©2011 Kixeye, Private and Confidential
Result


   • 100+ cheaters caught
     per hour

   • Better game balancing

   • $$ saved



©2011 Kixeye, Private and Confidential
Wrap up : A good partnership

       •Good partnership with KIXEYE and 10gen
       •Consulting/Training and MMS service was very
        helpful
       •More mongoDB usages in future at KIXEYE




©2011 Kixeye, Private and Confidential
{Status: “The End”}

       •{ next_action: “Q&A” }

       • Like this jason? meet us outside – KIXEYE recruiting
       { Company                                     : “KIXEYE”,
           “Engineers/Total _employee” : “65%”,
           Culture                       : [“Fun”, “Innovative”, “Passionate”]
           Analytics_engg : { technology : “mongo, hadoop , mysql”,
                                           tag        : “big data, geek” }
       }

©2011 Kixeye, Private and Confidential
Extra slides
Game Play
               BP Attack Video (https://www.youtube.com/watch?v=qud_-18D2MU)




©2011 Kixeye, Private and Confidential
Usage of data

• Data mining and aggregation to
  o Optimize User Acquisition
  o Optimize game analyzing game play
    behavior and
                      Algo +
              Data   Optimize
                         r

                       Feedback
Mongo - pain points




       • Diskspace handling
       • No sql syntax support
       • Capped collection - no deletes allowed
       • No good client GUI based tool

©2011 Kixeye, Private and Confidential
Damaged building is useless
Data related to player

       •       building has 5-10 levels
       •       building can have 3 states [built, damaged, repair in progress)
       •       an average base can have 50+ buildings
       •       16 million such bases
       •       45k people at any second [i.e base gets updated]
       •       Each level up or repair has time delay. People pay to reduce delay




©2011 Kixeye, Private and Confidential
Map-reduce in cheater detection


       function mapf()
       {
           emit(this.userid,             {userid:this.userid, total_time:this.length, bldg_id:1} ;
       }


       function reducef(key, values)
       {
           var r = {userid:key, total_time:0, count:0, avg_time:0};
           values.forEach(function(v)
                          {r.total_time += v.total_time; });       return r;
       }


       function finalizef(key, value) { ... }


©2011 Kixeye, Private and Confidential
The End

       •Q&A


       •Love numbers and big data? We have a job for
        you at analytics engg at KIXEYE. Talk to our
        recruiting team



©2011 Kixeye, Private and Confidential
To scale data handling

       •       Write speed for large volume data
       •       Read speed + volume [aggregate+find]
       •       MongoDB provides good balance compared to other sql+nosql solutions
               for certain use cases




©2011 Kixeye, Private and Confidential
Games+Platforms
       devices




      mysql         mongo                          BI Mongo Cluster



                                      ETL



              non Real time >= 1 hr                             real time 5
API
                                                                mins

       mySQL             Mongo              Hadoop                    mySQL
                                                                      /mongo



                                                                      Admin console
         Data access tools

       Dashboards          Hive        sql query       API            Scheduler,




                 Analytics Components - Birds' Eye View

More Related Content

Viewers also liked (11)

PDF
Mongo db data-models guide
Deysi Gmarra
 
PDF
Morning with MongoDB Paris 2012 - Cas d'usages courant en entreprise. Présent...
MongoDB
 
PDF
An Elastic Metadata Store for eBay’s Media Platform
MongoDB
 
PDF
Fraud detection, whiplash for cash scheme and Neo4j
Linkurious
 
PDF
MongoDB is the MashupDB
Wynn Netherland
 
PPTX
MongoDB @ Viacom
MongoDB
 
PDF
Dex: Introduction
Sparsity Technologies
 
PDF
How to apply graph analytics for bank loan fraud detection?
Linkurious
 
PDF
GraphDay Stockholm - Fraud Prevention
Neo4j
 
PDF
Big Data : concepts, cas d'usage et tendances
Jean-Michel Franco
 
PDF
Intro to Neo4j and Graph Databases
Neo4j
 
Mongo db data-models guide
Deysi Gmarra
 
Morning with MongoDB Paris 2012 - Cas d'usages courant en entreprise. Présent...
MongoDB
 
An Elastic Metadata Store for eBay’s Media Platform
MongoDB
 
Fraud detection, whiplash for cash scheme and Neo4j
Linkurious
 
MongoDB is the MashupDB
Wynn Netherland
 
MongoDB @ Viacom
MongoDB
 
Dex: Introduction
Sparsity Technologies
 
How to apply graph analytics for bank loan fraud detection?
Linkurious
 
GraphDay Stockholm - Fraud Prevention
Neo4j
 
Big Data : concepts, cas d'usage et tendances
Jean-Michel Franco
 
Intro to Neo4j and Graph Databases
Neo4j
 

Similar to Mongo DB in gaming industry (20)

PDF
MongoDB for Game Analytics
MongoDB
 
PDF
Database madness with_mongoengine_and_sql_alchemy
Jaime Buelta
 
PDF
No sql findings
Christian van der Leeden
 
KEY
Mongo scaling
Simon Maynard
 
PDF
MongoDB, Hadoop and humongous data - MongoSV 2012
Steven Francia
 
PPTX
Introduction to NoSQL
Yan Cui
 
PPTX
Battlelog - Building scalable web sites with tight game integration
Electronic Arts / DICE
 
PDF
Evgeniy Karelin. Mongo DB integration example solving performance and high lo...
Vlad Savitsky
 
PPTX
Building a Location-based platform with MongoDB from Zero.
Ravi Teja
 
PDF
The Case for using MongoDB in Social Game - Animal Land
Masakazu Matsushita
 
PPTX
Automating a Secure MongoDB Deployment with Opscode and Gazzang
MongoDB
 
PPTX
Java and Mongo
Marcio Mangar
 
PDF
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
PDF
Using Spring with NoSQL databases (SpringOne China 2012)
Chris Richardson
 
PPTX
SQLBits X Scaling out with SQL Azure Federations
Michael Rys
 
PDF
Utopia Kindgoms scaling case: From 4 to 50K users
Jaime Buelta
 
PDF
Utopia Kingdoms scaling case. From 4 users to 50.000+
Python Ireland
 
PDF
Building Applications Using NoSQL Architectures on top of SQL Azure: How MSN ...
DATAVERSITY
 
KEY
MongoDB and hadoop
Steven Francia
 
MongoDB for Game Analytics
MongoDB
 
Database madness with_mongoengine_and_sql_alchemy
Jaime Buelta
 
No sql findings
Christian van der Leeden
 
Mongo scaling
Simon Maynard
 
MongoDB, Hadoop and humongous data - MongoSV 2012
Steven Francia
 
Introduction to NoSQL
Yan Cui
 
Battlelog - Building scalable web sites with tight game integration
Electronic Arts / DICE
 
Evgeniy Karelin. Mongo DB integration example solving performance and high lo...
Vlad Savitsky
 
Building a Location-based platform with MongoDB from Zero.
Ravi Teja
 
The Case for using MongoDB in Social Game - Animal Land
Masakazu Matsushita
 
Automating a Secure MongoDB Deployment with Opscode and Gazzang
MongoDB
 
Java and Mongo
Marcio Mangar
 
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
Using Spring with NoSQL databases (SpringOne China 2012)
Chris Richardson
 
SQLBits X Scaling out with SQL Azure Federations
Michael Rys
 
Utopia Kindgoms scaling case: From 4 to 50K users
Jaime Buelta
 
Utopia Kingdoms scaling case. From 4 users to 50.000+
Python Ireland
 
Building Applications Using NoSQL Architectures on top of SQL Azure: How MSN ...
DATAVERSITY
 
MongoDB and hadoop
Steven Francia
 
Ad

More from Dmitry Makarchuk (11)

PDF
Linzer slides-barug
Dmitry Makarchuk
 
PDF
2012 11-28 rich web data modeling with graphs-1
Dmitry Makarchuk
 
PDF
2012 11-28 rich web data modeling with graphs-1
Dmitry Makarchuk
 
PPTX
Hadoop and mysql by Chris Schneider
Dmitry Makarchuk
 
PPTX
A random forest approach to skin detection with r
Dmitry Makarchuk
 
PPTX
"Your script just killed my site" by Steve Souders
Dmitry Makarchuk
 
PDF
RBrowserPlugin Project (Gabriel Becker)
Dmitry Makarchuk
 
PDF
Bridge to r
Dmitry Makarchuk
 
PPTX
Builiding analytical apps on Hadoop
Dmitry Makarchuk
 
PPTX
Jesse Yates: Hbase snapshots patch
Dmitry Makarchuk
 
PPT
Phoenix h basemeetup
Dmitry Makarchuk
 
Linzer slides-barug
Dmitry Makarchuk
 
2012 11-28 rich web data modeling with graphs-1
Dmitry Makarchuk
 
2012 11-28 rich web data modeling with graphs-1
Dmitry Makarchuk
 
Hadoop and mysql by Chris Schneider
Dmitry Makarchuk
 
A random forest approach to skin detection with r
Dmitry Makarchuk
 
"Your script just killed my site" by Steve Souders
Dmitry Makarchuk
 
RBrowserPlugin Project (Gabriel Becker)
Dmitry Makarchuk
 
Bridge to r
Dmitry Makarchuk
 
Builiding analytical apps on Hadoop
Dmitry Makarchuk
 
Jesse Yates: Hbase snapshots patch
Dmitry Makarchuk
 
Phoenix h basemeetup
Dmitry Makarchuk
 
Ad

Recently uploaded (20)

PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
Alpha Altcoin Setup : TIA - 19th July 2025
CIFDAQ
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
Alpha Altcoin Setup : TIA - 19th July 2025
CIFDAQ
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Market Insight : ETH Dominance Returns
CIFDAQ
 

Mongo DB in gaming industry

  • 1. MongoDB in KIXEYE Analytics Ben Goswami
  • 2. Game Play BP Video clips ( http://www.youtube.com/watch?v=uUHzppVn8WM) ©2011 Kixeye, Private and Confidential
  • 3. Agenda • Data scaling problems at KIXEYE analytics and what technologies we use • Example application: Cheater Detection Engine • How MongoDB helped us to solve it ©2011 Kixeye, Private and Confidential
  • 4. Game Play BP Attack Video (https://www.youtube.com/watch?v=qud_-18D2MU) ©2011 Kixeye, Private and Confidential
  • 5. Game Play and Data • Games generate lots of click data • Click = event o time of the event o what happened before or after o how the events are correlated ©2011 Kixeye, Private and Confidential
  • 6. Attack: { attacker : { user:123 player_level: 31 fleet: { 1:{ Weapons: { name:“Ripper Cannon IV” damage:306 accuracy:55 } armors:{ } … } 2: { } _id" : ObjectId("506e23001d4524122c00004b"), "ip" : "10.54.72.206", "dt" :{ "_id" : ObjectId("506e23001d4524dd2b0000bd"), "ip" : "10.54.72.206", } "&attacker_level=42&defender=0&defender_ext=salvage&defender_level=25&attack_type=PVE&attacking_ } units=%7b%224071%22%3a%5b5%2c3%2c0%5d%7d&defending_units=%7b%221040%22%3a%5b4%2c defender: { 0%2c4%5d%2c%221060%22%3a%5b1%2c0%2c1%5d%7d&attacking_shipconfig=%7b%22ships%22%3a } %5b%7b%22armors%22%3a%5b333%2c333%2c333%2c333%5d%2c%22weapons%22%3a%5b134%2c1 attack_time: 100354563 34%2c193%2c134%2c134%2c134%2c134%2c134%5d%2c%22specials%22%3a%5b542%2c561%2c571 attack_duration:290 %2c501%5d%2c%22hullID%22%3a4071%2c%22tacticalModules%22%3a%5b%5d%2c%22actives%22%3 sector:7 a%7b%22hp%22%3a9317.68457%2c%22rank%22%3a4%2c%22fltp%22%3a5%2c%22bid%22%3a54834 … 79%2c%22f%22%3a0%2c%22id%22%3a110%2c%22flt%22%3a5%2c%22vxp%22%3a10.858466%7d%7 d%2c%7b%22armors%22%3a%5b333%2c333%2c333%2c333.. "stage" : "new" } }
  • 7. How much data? •Multi TBs / month (4-5x in next 6 months) •Critical : Volume reads with speed •< 1% data has actionable intelligence ©2011 Kixeye, Private and Confidential
  • 9. MongoDB in KIXEYE •Why: – fast read + writes for high volume – Document based architecture, schema less – Indexing , auto failover, auto sharding •Where: – Games , KIXEYE Platform – Analytics, Logging ©2011 Kixeye, Private and Confidential
  • 10. Data technologies at Analytics Technology Data Volume Query Type I/O speed MySQL Small Adhoc + Read fast, only < 300 GB Pre defined Aggregated data Mongo Mid Predefined Read + Write speed < 2 TB fast Hadoop X-Large Adhoc Read slow (Hive+HDFS) 2 TB+ writes: only insert no update ©2011 Kixeye, Private and Confidential
  • 11. An Example Application Cheater Detection engine for games: How mongoDB helped us ©2011 Kixeye, Private and Confidential
  • 12. A simple backyard at start in BYM
  • 13. Currency is time or $ or both ©2011 Kixeye, Private and Confidential
  • 16. Sample record • 4kb nested jason block • base = { base_name: “sweet_mango_db” resources { 1: { name: "storage silo" level: 5, mode:“built" time:123456902 2: { … ..} ...} ...} ..} ©2011 Kixeye, Private and Confidential
  • 17. How people cheat? • Each upgrade or repair takes pre defined time • if time+payment < predefined time = cheater • victims chain create snowball effect ©2011 Kixeye, Private and Confidential
  • 18. ..and why they cheat... ©2011 Kixeye, Private and Confidential
  • 19. Data volume for cheater detection • 16Mil * 50 * 10 * 3 *.... • multiple time based snapshots • 0.01 % cheaters • Detect < 5 mins • That's searching through lot of data fast ©2011 Kixeye, Private and Confidential
  • 20. .. and boss told • Catch and auto ban cheaters • Don't label a good guy a cheater ©2011 Kixeye, Private and Confidential
  • 21. ..team was ready for the challenge • Speed+Accuracy of application • Technology evalauation ©2011 Kixeye, Private and Confidential
  • 22. MongoDB fits the requirement • read writes are fast because memory mapped files compared to mysql+memcache or hbase • Unstructured data => need schema less • indexing on a nested data element ©2011 Kixeye, Private and Confidential
  • 23. .. more on why mongo • Auto purging thru TTL • Auto sharding during traffic spikes • Binary data support, fast uncompression • Capped collection: writes faster ©2011 Kixeye, Private and Confidential
  • 24. Development decision points • Old map-reduce (prior to 2.2) vs New Aggregation framework • Global write locks removal in 2.2 • Lazy and Non lazy inserts ©2011 Kixeye, Private and Confidential
  • 25. Result • 100+ cheaters caught per hour • Better game balancing • $$ saved ©2011 Kixeye, Private and Confidential
  • 26. Wrap up : A good partnership •Good partnership with KIXEYE and 10gen •Consulting/Training and MMS service was very helpful •More mongoDB usages in future at KIXEYE ©2011 Kixeye, Private and Confidential
  • 27. {Status: “The End”} •{ next_action: “Q&A” } • Like this jason? meet us outside – KIXEYE recruiting { Company : “KIXEYE”, “Engineers/Total _employee” : “65%”, Culture : [“Fun”, “Innovative”, “Passionate”] Analytics_engg : { technology : “mongo, hadoop , mysql”, tag : “big data, geek” } } ©2011 Kixeye, Private and Confidential
  • 29. Game Play BP Attack Video (https://www.youtube.com/watch?v=qud_-18D2MU) ©2011 Kixeye, Private and Confidential
  • 30. Usage of data • Data mining and aggregation to o Optimize User Acquisition o Optimize game analyzing game play behavior and Algo + Data Optimize r Feedback
  • 31. Mongo - pain points • Diskspace handling • No sql syntax support • Capped collection - no deletes allowed • No good client GUI based tool ©2011 Kixeye, Private and Confidential
  • 33. Data related to player • building has 5-10 levels • building can have 3 states [built, damaged, repair in progress) • an average base can have 50+ buildings • 16 million such bases • 45k people at any second [i.e base gets updated] • Each level up or repair has time delay. People pay to reduce delay ©2011 Kixeye, Private and Confidential
  • 34. Map-reduce in cheater detection function mapf() { emit(this.userid, {userid:this.userid, total_time:this.length, bldg_id:1} ; } function reducef(key, values) { var r = {userid:key, total_time:0, count:0, avg_time:0}; values.forEach(function(v) {r.total_time += v.total_time; }); return r; } function finalizef(key, value) { ... } ©2011 Kixeye, Private and Confidential
  • 35. The End •Q&A •Love numbers and big data? We have a job for you at analytics engg at KIXEYE. Talk to our recruiting team ©2011 Kixeye, Private and Confidential
  • 36. To scale data handling • Write speed for large volume data • Read speed + volume [aggregate+find] • MongoDB provides good balance compared to other sql+nosql solutions for certain use cases ©2011 Kixeye, Private and Confidential
  • 37. Games+Platforms devices mysql mongo BI Mongo Cluster ETL non Real time >= 1 hr real time 5 API mins mySQL Mongo Hadoop mySQL /mongo Admin console Data access tools Dashboards Hive sql query API Scheduler, Analytics Components - Birds' Eye View

Editor's Notes

  • #3: Wow that is fun