In-memory Computing and Sports Betting
Sam Lawrence CTO at FSB Technology
In-memory Computing and Sports Betting Sam Lawrence CTO at FSB - - PowerPoint PPT Presentation
In-memory Computing and Sports Betting Sam Lawrence CTO at FSB Technology Keynote Abstract Competition, innovation, regulation and improved data collection have grown the complexity of Sports Betting systems at an unprecedented rate. Coupled
Sam Lawrence CTO at FSB Technology
◼ Competition, innovation, regulation and improved data collection have grown the complexity of Sports Betting
◼ This presentation is a personal look at the technical challenges the industry has faced, the solutions implemented
◼ CTO and co-founder at FSB Technology,
◼ 18 years in gaming industry ◼ Started programming as 9 year old on Sinclair
◼ Still fairly “hands-on”, but happily more hazy on
◼ Appeared on the cover of “Your Computer” in
◼ Basic premise, money in a hat, winners share
◼ Parimutuel or Tote betting ◼ Early C. 20th used mechanical solutions ◼ Fixed odds provide more betting options without
◼ Online has transformed the industry - more bets
The world’s first parallel automatic totalisator - Ellerslie Racecourse New Zealand 1913 (http://rutherfordjournal.org/article020109.html)
◼ 1 / probability … but with margin or “overround” ◼ Complex Models, controlled by key parameters ◼ Faster / richer input data
◼ live sports data ◼ customer activity ◼ other bookmakers - avoiding arbitrage ◼ human traders
◼ Computing has given more techniques, but hasn't
From the “Poisson distribution” page on Wikipedia
◼ Volatility
◼ one-off sporting events ◼ Saturday afternoon
◼ Regulation
◼ protecting customers ◼ data protection ◼ spotting money laundering ◼ maintaining integrity in sport
◼ New Products
◼ e.g. Cash Out and Request a Bet
◼ Competition
◼ Welcome offers ◼ Odds Comparison
Picture of an automatic transmission valve body
◼ Rapid change created opportunity ◼ Also presented many problems to solve ◼ Same problems faced by other industries ◼ Still need to innovate, not just react ◼ Because it’s the World Cup
◼ Provides sports betting as a service
◼ White label websites ◼ Bespoke implementations
◼ Developer and Operator ◼ Founded in 2007, originally focused on
◼ Launched first fully responsive site in 2014 ◼ Now run 36 branded sites in 11 different
◼ Proof of concept platform ◼ PostgreSQL database ◼ GlassFish application server ◼ Lots of JMS ◼ Choice of open-source technologies with route to
◼ Caching and distribution of data with JPA
Glassfish EJB / JMS / JPA PostgreSQL
◼ OpenJMS replaced with ActiveMQ ◼ Scope of JPA restricted - buggy and slow at high
◼ Caching of sports data via memcached ◼ MongoDB for document based data structures ◼ Added ESB with karaf / camel for external data
Glassfish EJB / JMS / JPA MongoDB PostgreSQL Karaf + Camel
Memcached
◼ GridGain caching and processing bespoke data
◼ sports data - more reads than writes ◼ fast risk and liability calculations
◼ GridGain for distributed locks ◼ PostgreSQL still “master” - final safeguard for data
◼ Scale horizontally adding VMs ◼ Now run 9 different instance of platform
Wildfly / ActiveMQ EJB / JMS / JPA MyBatis MongoDB PostgreSQL Karaf + Camel
GridGain
◼ Platform stable and scalable - much new
◼ The need to keep innovating
◼ Entrepreneur’s / CTO’s mindset? ◼ But how to measure value?
◼ Bigger customers want more “Enterprise”
◼ Security, DR, minimal downtime
◼ The key drivers
◼ Increase performance ◼ Handle richer / faster data ◼ Allow horizontal scaling ◼ Redundancy
◼ Relationship with storage
◼ Faster / cheaper ◼ Data that needs to be kept ◼ Data that can’t be kept too long ◼ Persistent memory
◼ Performance ◼ Redundancy ◼ Scale with needs / volume ◼ Cost / benefits ◼ Community ◼ Support ◼ Development
◼ Okay, you want to do In Memory computing ◼ Do you need a different mindset? ◼ What framework should you use?
◼ ...Events ◼ ...Streams ◼ ...Services ◼ ...Big data
◼ How do you develop?
◼ Use DevOps tools - ansible, VirtualBox
◼ How do you test?
◼ Concurrency issues are hard!
John Backus 1978 - “Can Programming Be Liberated from the von Neumann Style? A Functional Style and Its Algebra of Programs”
◼ Sports Betting is an exciting industry for tech ◼ In-Memory computing was essential to enable scale ◼ Relieved to have a firm foundation, but still many problems to solve ◼ Excited about the future
◼ Sam Lawrence ◼ CTO at FSB Technology ◼ sam@fsbtech.com