Knowledge, Graphs & 3D CAD Systems - David Bigelow @ GraphConnect Chicago 2013
Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013
-
Upload
neo4j-the-fastest-and-most-scalable-native-graph-database -
Category
Technology
-
view
973 -
download
1
Transcript of Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013
![Page 1: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/1.jpg)
§
March 2013
Neo4j @ Gamesys
Toby O’Rourke
![Page 2: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/2.jpg)
March 2013
Overview • About Gamesys
• Our Use Case
• Choosing a Store
• Building the App
• Deployment & Ops
• Cypher & Reporting
• Thinking in Graphs
![Page 3: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/3.jpg)
March 2013
About Gamesys• Major Cash & Social Gaming operator, primarily in UK & Europe
• World’s first Cash gaming on Facebook
• Social Games include Jackpotjoy Slots & Here Be Monsters
• Bingo, Slots, Casino, Instants
• Handle ~5bn wagers per annum
• 200k unique cash players a month
![Page 4: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/4.jpg)
March 2013
Building an Internal Social Network• Online Bingo is a highly social game, there is chat alongside the game
• Acquiring new players can be very expensive
• Players acquired by referral are cheaper to acquire and higher value
• We want to incentivise members to refer their friends
• We wanted to learn about the social relationships between players
![Page 5: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/5.jpg)
March 2013
Building the App• Separating the persistence from the model is less important than when using
RDBMS.
• In fact, the power of graph traversals is part of the domain
• Used Spring Data Neo4j[1]
• Great Documentation
• Loads of support from Michael Hunger
• Found a few bugs
• Had to drop back to straight up Neo4j APIs a couple of times
[1] http://www.springsource.org/spring-data/neo4j
![Page 6: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/6.jpg)
March 2013
Deployment & Ops
• Very stable, no unplanned outages since we’ve been live (~18 months)
• Separate node as part of cluster, not serving live requests for ad-hoc
querying & admin
• Mutating Cypher is great for making on-the-fly tweaks
![Page 7: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/7.jpg)
March 2013
![Page 8: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/8.jpg)
March 2013
Looking at our Graph
![Page 9: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/9.jpg)
March 2013
Aside: Our Referral Offer• Referee gets a cash bonus straight away
• Constrained by a “play through” requirement
• Referrer gets a cash bonus once the Referee has played a certain amount
![Page 10: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/10.jpg)
March 2013
Aside: 1, 2, Profit!!!• If I create multiple accounts I can collect loads of referral bonuses
• I might get some decent wins playing through the bonus
• In any case I should have most of my original stake available
• Referral Bonuses – Referee Losses >= 0 in most cases
• £££!
![Page 11: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/11.jpg)
March 2013
![Page 12: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/12.jpg)
March 2013
![Page 13: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/13.jpg)
March 2013
Modelling a Game Economy2012
April
• Here Be Monsters (https://apps.facebook.com/herebemonsters/)
• Complex economy, 1000’s items, monsters, locations and traps
• Really difficult to understand the effect of changing (eg) the scarcity of
any given item
• Graph gives us a way to model that and calculate the value of things
![Page 14: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/14.jpg)
March 2013
![Page 15: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/15.jpg)
March 2013
![Page 16: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/16.jpg)
March 2013
![Page 17: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/17.jpg)
March 2013
Wrapping Up2012
April
• Graphs are applicable to several gaming use cases
• Social Networks
• Fraud/Collusion Detection
• Modeling
• Neo4j being used as Production system and for Analytics
• Stable in production
![Page 18: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/18.jpg)
March 2013
On Facebook
facebook.com/gamesys
on Twitter
@officialgamesys
@tobyorourke
@burningmonk
Find out more
![Page 19: Graph Adoption at Gamesys - Toby O'Rourke @ GraphConnect SF 2013](https://reader035.fdocuments.us/reader035/viewer/2022062708/558cc75ed8b42afe7b8b45d2/html5/thumbnails/19.jpg)
§
March 2013
Thanks!