17
an AI approach to an AI approach to web gaming in the cloud web gaming in the cloud Vittorio Amos Ziparo Vittorio Amos Ziparo @OWF 2011 @OWF 2011

Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

Embed Size (px)

DESCRIPTION

Oludap is a multiplayer online strategic game that is based on the open-source (j)Ruby on Rails framework MADMASS (MAssively Distributed Multi Agent System Simulator). MADMASS simplifies the development of next-generation web applications by relying on methodologies from Artificial Intelligence and Multi-Agent Systems. In Oludap, players compete in real-time for limited resources in a shared environment. Oludap’s gameplay is episodic, meaning that small groups of users can play one-shot games. This type of games presents two challenges: the episodic nature of the game-play may yield to rapid and unpredictable fluctuations in the workload that can make planning for IT infrastructures not sustainable; the fact that players act on a shared environment generates a high level of contention on data thus, considering that consistency is a strong requirement, scalability may be at risk. In order to overcome these challenges, we are working to re-implement the data layer of the game on top of Hibernate OGM and Infinispan, in the framework of the Specific Targeted Research Project (STReP) Cloud-TM, which is co-financed by the European Commission through the contract no. 257784.

Citation preview

Page 1: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

an AI approach to an AI approach to web gaming in the cloudweb gaming in the cloud

Vittorio Amos ZiparoVittorio Amos Ziparo@OWF 2011@OWF 2011

Page 2: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

Cloud-TMCloud-TM

co-financed by the European Commission through the contract no. 257784. co-financed by the European Commission through the contract no. 257784.

Page 3: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

Web GamesWeb Games

Gameforge > 300M reg users!Gameforge > 300M reg users!Zynga has 50% of facebook users!Zynga has 50% of facebook users!

Flash GamesFlash GamesBrowser GamesBrowser Games

Page 4: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica
Page 5: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

OutlookOutlook

● an AI design pattern

● scaling in the Cloud

Page 6: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

an AI an AI design patterndesign pattern

Page 7: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

MAS: an AI pattern MAS: an AI pattern

EnvironmentEnvironmentAgentAgentActionActionPerceptPercept

mor

e age

nts

mor

e age

nts

Page 8: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

1. Benefits of a cmd patternBenefits of a cmd pattern

2.2. Guarantees on correctnessGuarantees on correctness

3.3. Easy to plug in AI and MAS codeEasy to plug in AI and MAS code

Why MAS?Why MAS?

Page 9: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

MadMassMadMass

open source

open source

ruby lib (se

rver)

ruby lib (se

rver)

js lib (

js lib (client)

client)

Page 10: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

scaling in scaling in the Cloudthe Cloud

Page 11: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

The price of scalingThe price of scaling

Page 12: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica
Page 13: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

A DSTM data layerA DSTM data layer

Distributed Software Transactional MemoryDistributed Software Transactional Memory

... imagine a memory that elastically scales... imagine a memory that elastically scales,,

that transparently persists data, that transparently persists data,

and that deals for you with concurrency issuesand that deals for you with concurrency issues

Page 14: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

A Red Hat BackboneA Red Hat Backbone

Page 15: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

Autonomic Self-OptimizationAutonomic Self-Optimization

Page 16: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

Want to know more?Want to know more?

oludap.comoludap.com

github.com/algorithmica/madmass github.com/algorithmica/madmass

cloudtm.eucloudtm.eu

www.hibernate.org/subprojects/ogm www.hibernate.org/subprojects/ogm

www.jboss.org/infinispanwww.jboss.org/infinispan

torquebox.orgtorquebox.org

Page 17: Cloud / Oludap case study - Vittorio Amos Ziparo, Algorithmica

Thanks!Thanks!