from betting to gaming to tradefair
TRANSCRIPT
-
8/14/2019 From Betting to Gaming to Tradefair
1/63
FROM BETTING TO GAMING
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Matt Youill, Chief Technologist, Betfair
Asher Glynn, Primary Initiatives Manager, Betfair
QCon, London UK, March 2008
-
8/14/2019 From Betting to Gaming to Tradefair
2/63
Bets are only made between the customerand the Bookmaker.
Bookmaker sets odds (prices) and factors ina margin.
INDUSTRY / TRADITIONAL BOOKMAKING.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Traditional Bookmakers are still majorplayers in the gaming industry.
-
8/14/2019 From Betting to Gaming to Tradefair
3/63
INDUSTRY / BETFAIR EXCHANGE.
New bookmaker Betfair appears in 2000.Defined the Betting Exchange concept.
Customers bets matched betweenthemselves.
Customers set the odds (prices).
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
An exchange has perfect risk managementand therefore, a lower margin.
Commission on winnings.
Prices around 20% better than TraditionalBookmakers.
-
8/14/2019 From Betting to Gaming to Tradefair
4/63
INDUSTRY / BETFAIR CASINO, POKER AND
GAMES.
Complete portfolio of gaming productscomplements the exchange.
Strategically key for Betfair.
Share Betfairs principle of fairness such asthe Zero edge Casino.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
-
8/14/2019 From Betting to Gaming to Tradefair
5/63
INDUSTRY / BETFAIR.
Betfair operates a betting exchange, gamesexchange, poker room, and casino.
Annual revenues in excess of 200 million.
Over 1,000,000 registered users. Over 1500 employees in offices globally.
5 billion page views/week.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Almost half of all global traffic to gamblingsites comes to Betfair.
2,000 deposited every minute.
Worlds leading betting exchange.
-
8/14/2019 From Betting to Gaming to Tradefair
6/63
INDUSTRY / TRADEFAIR.
The Tradefair exchange, a subsidiary ofBetfair, launched in late 2007.
Currently offering financial binaries andspread betting.
Accessible, available, transparent retail
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
Commission on profits.
Prices very closely reflect the underlyingmarket.
Very low cost trading direct to customers.
-
8/14/2019 From Betting to Gaming to Tradefair
7/63
CHALLENGE / TRANSACTION PROCESSING.
Numerous challenges when delivering theseproducts directly to customers over retailchannels.
Security on the wild west web.
Low capability devices - browsers, mobiles,etc.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
And so on.
State management , particularly thechanging of and delivery of state (a.k.a
transaction processing) very difficult.
-
8/14/2019 From Betting to Gaming to Tradefair
8/63
CHALLENGE / BETTING EXCHANGE.
The exchanges have very large capacityrequirements.
Currently, up to 1000 transactions persecond.
Desired objective of 50,000 low cost
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
Plus increased reliability, maintainability, etc.
The 100X project formed to achieve thesegoals.
A transaction = a bet placement, a cancel oran edit.
-
8/14/2019 From Betting to Gaming to Tradefair
9/63
CHALLENGE / EXCHANGE TRANSACTION
ENGINE.
The Betfair exchanges flux capacitor is theExchange Transaction Engine (ETE).
It provides 4 key functions:
Exposure: Validates and stores bet orders,reserves customer funds.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Matching: Matches customers bets andreports the result.
Bet Management: Allows customers toview the status of their bets.
Market View: Allows customers to view a
summary of all the bets placed on an event.
Most have parallels in financials.
-
8/14/2019 From Betting to Gaming to Tradefair
10/63
CHALLENGE / EXCHANGE TRANSACTION
ENGINE.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Exposure
Matching
BetManagement
MarketView
-
8/14/2019 From Betting to Gaming to Tradefair
11/63
CHALLENGE / EXCHANGE TRANSACTION
ENGINE.
Currently implemented in PL/SQL on a singleOracle instance.
Rated as one of top 5 hottest Oracledatabases in the world.
Since Betfair was founded it has been aconstant struggle to satisfy capacitydemands.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Why?... Growing pains aside, it is becauseBetfairs rules of fairness present a challengewhen scaling the Matching component of theETE.
-
8/14/2019 From Betting to Gaming to Tradefair
12/63
CHALLENGE / MATCHING.
Betfair has two key business rules
Best Execution (Best customer value)
Each bet placed is matched against opposing betsin order of descending odds.
First come, First served (Fairness for all)
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
The first bet placed is the first matched exclusive ofothers.
Means everything processed serially.
There is an unavoidable traffic jam in thebusiness rules.
-
8/14/2019 From Betting to Gaming to Tradefair
13/63
CHALLENGE / MATCHING.
Rules only apply per event.
Means system can be scaled by processingeach event in parallel. (Similar to theconcurrent execution of trades on financial
instruments).
But
The nature of big events, particularly horseracin is that the are short lived and start
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
times rarely coincide. (Unlike the moreevenly spread activity on financialexchanges).
Over 75% of betting activity at any one time
is on a single Betfair event the hotmarket.
-
8/14/2019 From Betting to Gaming to Tradefair
14/63
CHALLENGE / EXPOSURE AND BET
MANAGEMENT.
Exposure and bet management are less of achallenge as they occur on a per customer(account) basis.
With activity roughly evenly spread acrossaccounts, and peak activity on individualaccounts relatively low, its possible tosimply partition by account.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Parallelisation, partitioning and distributionprovides sufficient capacity.
Except, of course, in the case of a bigindividual users. But none of them are thatbigyet.
-
8/14/2019 From Betting to Gaming to Tradefair
15/63
CHALLENGE / MARKET VIEW.
The Market View or the view of the oddsand stakes currently available on an event ischallenging but in a different way.
Every transaction will potentially change theview of a market.
Hence, every transaction requires the newview to be delivered to customers.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
This is a lot of information that needs to goto a lot of people many times every second.
Multicasting scales effectively but in theworld of the web it is harder requiringmanual polling, AJAX, Comet, etc.
-
8/14/2019 From Betting to Gaming to Tradefair
16/63
APPROACH / THE PIONEERS.
Many initiatives tried before.
Approached as optimisations or evolutions of
the existing engine.
Optimizations - hardware upgrades, indextuning, schema reorganisations, etc.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Evolutions product solutions, functionalpartitioning, asynchronicity, etc.
Essential yet modest gains.
-
8/14/2019 From Betting to Gaming to Tradefair
17/63
APPROACH / 100X PROGRAMME.
100 times (100X) more transactions per second
Infinite capacity at zero cost
At the time of initiation (500 TPS -> 50,000 TPS)
10,000% target.
Challenge existed for many years, well defined. Solution less so .
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Phases
Investigation Had this problem or anything like it been solved before?
Research & Design Sketch and elaborate various architectures.
Proof of Concept Multiple Vendors including Betfair Engineering. Build, test andcompare.
Integration How to get into production? What changes and compromisesneeded?
Build and Deploy Build the Lite version and plug it into the live system.
-
8/14/2019 From Betting to Gaming to Tradefair
18/63
SOLUTION / CONCURRENCY (ISOLATION).
Each of the major functions in the ETErequire exclusive access to either an accountor event (market).
Rather than client sessions acquiring andreleasing locks on particular pieces of data,each instance of an entity is assigned to asingle execution unit (i.e. Actor). Unit A may
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
own ccoun , or un may own ar e
456 for example.
With execution units tied to individualentities, access is inherently serialised and
transactions are isolated from one another.
-
8/14/2019 From Betting to Gaming to Tradefair
19/63
SOLUTION / CONCURRENCY (ISOLATION).
Exposure &Bet Management
Exposure &Bet Management
Exposure &Bet Management
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Matching &Market View
Matching &Market View
-
8/14/2019 From Betting to Gaming to Tradefair
20/63
SOLUTION / CONCURRENCY (ISOLATION).
Brokering &Order Management
Brokering &Order Management
Brokering &Order Management
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Matching &Order Book
Matching &Order Book
-
8/14/2019 From Betting to Gaming to Tradefair
21/63
SOLUTION / CONCURRENCY (ISOLATION).
Exposure &Bet Management
Bets
Bet ID Type Runner Odds Stake
1 Bet For Field Commander 12.5 10
Account
Account ID Funds Exposure
1 1,000 735
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
2 Bet For Wingate Street 6.8 20
3 Bet For Keyton Grace 19.5 30
4 Bet Against Foxy Boxy 14.5 50
Only one execution unit can work on this data. It is owned by the Actor. No interleaved/inconsistent updates.
-
8/14/2019 From Betting to Gaming to Tradefair
22/63
SOLUTION / COMMUNICATIONS.
Each Actor operates on the data it owns as a result of messages(operations) sent to it.
Each Actor may in turn send more messages to furtherexecution units.
Message passing has its benefits, but also its costs
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Can distribute widely, conceptually simpleconcurrency model, threads can bedetached from sessions, messages can bebatched, easier to take advantage ofasynchronous IO, etc.
But messages can be lost, arrive out oforder, duplicated, corrupted, needcorrelation, no system wide consistency oratomicity, enqueue/dequeue costs, etc.
-
8/14/2019 From Betting to Gaming to Tradefair
23/63
SOLUTION / CONSISTENCY.
No Actor in the system has a complete andconsistent view of the entire system andthere is no strict integrity across units.
Each only responsible for its individual viewof the world. These chunks of reality definethe boundaries of consistency.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Ultimately full system wide consistency isdesirable but at any instance in time, globalconsistency may vary. That is - globalconsistency is weak and achieved onlyeventually.
When something inconsistent is found,explicit correcting actions need to be taken.
-
8/14/2019 From Betting to Gaming to Tradefair
24/63
SOLUTION / CONSISTENCY.
Exposure &Bet Management
MatchesBet ID Matched Bet ID Matched Odds Matched Stake
1 5 12.5 5
Bets
Bet ID Type Runner Odds Stake
1 Bet For Field Commander 12.5 10
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Data exists under two Actors control, but no explicit consistency. Dont become inconsistent in the first place. State and operations must not be lost,
corrupted, duplicated, etc. But if something does, take explicit compensating action.
Matching &Market View
Unmatched Bets
Bet ID Type Runner Odds Unmatched Stake
1 Bet For Field Commander 12.5 5
Example: These must add up - eventually
-
8/14/2019 From Betting to Gaming to Tradefair
25/63
SOLUTION / ATOMICITY.
Each operation sent to an Actor definesthe scope of a transaction. Theinstructions that the operation performsis defined by the deterministic functionthat it executes.
Receipt and journaling of that operationdefines the success of a transaction.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
,
only captured.
In most case, transactions acrossActors require explicit compensatinglogic.
Would be nice to have one Actor andavoid spanning transactions. Notpractical though.
-
8/14/2019 From Betting to Gaming to Tradefair
26/63
SOLUTION / ATOMICITY.
Exposure &Bet Management
Place Bet
Match Bet
Bet A(Incomplete Place)
Bet A(Complete)
Place Bet
Bet A(Complete)
Edit Bet
Bet A(Complete, Incomplete Edit)
Match Bet
Bet A
(Complete,Incomplete Edit)
The edit cant complete, theedit work done so far must be
rolled back manually.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Match Bet
Matching &Market View
Bet A(Unmatched)
Bet Unmatched
Exposure &Bet Management
Bet B(Incomplete Place)
Bet B(Matched)
Bet A(Matched)
Bet Matched
Bet Matched
Bet B(Complete)
Bet A(Matched)
Bet Already Matched
-
8/14/2019 From Betting to Gaming to Tradefair
27/63
SOLUTION / WHEN THINGS GO WRONG.
Highly distributed architecture allows for partial failures anddisruptions.
Large chunks of the system can fail and the system as a wholewill keep running.
Durable state and message reliability means system stabiliseseventually in the event of a failure.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Design isnt overly fussy. Simple design important.
-
8/14/2019 From Betting to Gaming to Tradefair
28/63
SOLUTION / RELIABILITY (STATE).
Actors inbox turned into a journal. Statepersistence provided by logging allmessages.
Replay of journal restores state. Simple
All functions following the log must be
Logger
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
restored to exactly how it was.
Disk shared between nodes in the event of afull node failure.
Adding check pointing reduces replay timeand prevents log exhaustion.
Exposure &Bet Management
-
8/14/2019 From Betting to Gaming to Tradefair
29/63
SOLUTION / RELIABILITY (MESSAGING).
The log also serves as the basis for reliablemessaging.
Journal replay also restores the state ofmessage counters along with applicationstate.
LoggerConversations
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
are maintained for each sending andreceiving pair.
Using the counters, lost messages can bedetected, duplicate messages can be
removed and in doubt messages can beretried safely.
Exposure &Bet Management
-
8/14/2019 From Betting to Gaming to Tradefair
30/63
SOLUTION / RELIABILITY (MESSAGING).
ConversationReceive: 23Send: 2166
ConversationReceive: 233Send: 84
24
2166
234
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
ConversationReceive: 579Send: 154
ConversationReceive: 2165Send: 24
ConversationReceive: 153Send: 580
84
ConversationReceive: 83Send: 234
154
580
Conversations are betweenlogical entities
-
8/14/2019 From Betting to Gaming to Tradefair
31/63
SOLUTION / DEPLOYMENT.
Exposure &Bet Management
Exposure &Bet Management
Logger
Exposure &Bet Management
Logger
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Matching &Market View
Logger
Matching &Market View
Matching &Market View
Logger
-
8/14/2019 From Betting to Gaming to Tradefair
32/63
SOLUTION / HIGH AVAILABILITY.
Log replay means faults are toleratedslowly.
Need fast(er) recovery.
Two flavours of HA catastrophic and fast.
Need a solution for both.
We need a back up ready to go, but if both
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
disappear then all is not lost.
Lots of different ways to do this, but noperfect solution.
We tried various ways about 8. Mostly wellestablished methods.
SOLUTION / CATASTROPHIC FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
33/63
Recovering UnitsFailed Units
SOLUTION / CATASTROPHIC FAILURES
(1. LOG REPLAY).
Failed Actors Recovering Actors
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Conceptually simple. Disk logging fast enough.
Survives most problems eventually. Slow recovery.
SOLUTION / CATASTROPHIC FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
34/63
SOLUTION / CATASTROPHIC FAILURES
(2. UPSTREAM REPLAY).
Upstream Actor Upstream ActorUpstream Actor
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Fed UnitRecovering ActorsFed Unit
Failed Actors Potentially fast, no need for slowlogging on hot market units.
Very complex slow recovery. Problem if upstream actor is also
down. Still need to log somewhere.
SOLUTION / CATASTROPHIC FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
35/63
Recovering UnitsFailed Units
SOLUTION / CATASTROPHIC FAILURES
(3. MULTI-ORDER MIRRORING).
Failed Actors Recovering ActorsFailed Units
Failed Actors
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Appears simple, but can be tricky.
Slow. Wont survive high multi-order failures.
SOLUTION / FAST FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
36/63
SOLUTION / FAST FAILURES
(4. STATE MIRRORING).
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Hot Actor Warm ActorPeriodic check point of state deltas
Appears simple. Somewhat slow. Reintroducing a failed node can be
tricky. Synergy with logging (check pointing)
mechanism for catastrophic failures.
SOLUTION / FAST FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
37/63
SOLUTION / FAST FAILURES
(5. LOG TAILING).
Hot Actor Warm Actor
Continuous recovery
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Conceptually simple. Synergy with logging mechanism for
catastrophic failures. Needs shared disk.
SOLUTION / FAST FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
38/63
SOLUTION / FAST FAILURES
(6. SIMULTANEOUS DELIVERY).
Reliable, ordered multicast
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Hot Actor Warm Actor
Slow and tricky. No need for shared disk.
SOLUTION / FAST FAILURES
-
8/14/2019 From Betting to Gaming to Tradefair
39/63
SOLUTION / FAST FAILURES
(7. RELAYING).
Hot Actor Warm Actor
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
/dev/null
Conceptually simple. No need for shared disk. Throughput not affected. Though increases latency.
-
8/14/2019 From Betting to Gaming to Tradefair
40/63
SOLUTION / LOG TAILING
-
8/14/2019 From Betting to Gaming to Tradefair
41/63
SOLUTION / LOG TAILING.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Best compromise. Simple to understand and implement. Catches both catastrophic and fast failure requirements.
RESULTS
-
8/14/2019 From Betting to Gaming to Tradefair
42/63
RESULTS.
70K TPS (hot market throughput test at Sun Solution Centre, Manchester, England). Single biggest cost, by far, was serialization on and off network and disk.
70K TPS on a single market. Potentially millions per second across multiple markets (i.e.instruments).
Results
Load Injectors Account Controllers Market Controllers Throughput Latency
2 2 1 29,950 TPS 250 ms
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
,
6 5 2 136,150 TPS 679 msMachines Specification:2 x Dual Core 2Ghz AMD Opteron Processor8GB MemoryCopper Gbit NetworkRed Hat Enterprise Linux 4 O/SJava 1.5 VMSun 3510 FC Array Storage
Lite (Production) version passed testing, being integrated.
Scaled up instead of out and integrated with classic Oracle ETE.
FLYWHEEL LITE
-
8/14/2019 From Betting to Gaming to Tradefair
43/63
FLYWHEEL LITE.
Production version of Flywheel.
Demanding integration challenges.
Simplified to work on single node.Advanced journaling.
Less network hops.
Optimization opportunities.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Many advances.
Algorithm refinement.
Improved parallelism.
Improved journaling technology.
Slowed by bridge to classic ETE.
Removal of bridge indicates 80K TPS at sub 100ms.
TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
44/63
TRADEFAIR.
Betfair already provides a number offinancial bets.
Low(ish) take up.
Big potential market
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Acquired an understanding of how to copewith high volume/low latency system fromSports and Games exchanges
Looking for areas to diversify into
TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
45/63
TRADEFAIR.
Recognised an opportunity and launchedTradefair.
Betfair for Financials rather than sport.
Retail focused - compete on value tocustomers.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Just starting up now.
TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
46/63
TRADEFAIR.
Betfairs Contribution
Cash.
People.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
47/63
TRADEFAIR.
And a really fast exchange system.
Flywheel technology the key enabler for entry into this market.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
FROM BETFAIR TO TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
48/63
FROM BETFAIR TO TRADEFAIR.
Flywheel Lite
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Pipelines
-
8/14/2019 From Betting to Gaming to Tradefair
49/63
TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
50/63
TRADEFAIR.
Tradefair
Customers demand consistent latency.
Standard deviation down to less than5 msec under load.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
throughput.
TRADEFAIR
-
8/14/2019 From Betting to Gaming to Tradefair
51/63
TRADEFAIR.
Solutions technical
Non disk journaling.
GC tuning.
Heavy abstraction avoidance (data kept
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
Throughput throttling.
Smarter buffering.
-
8/14/2019 From Betting to Gaming to Tradefair
52/63
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
53/63
TRADEFAIR.
Betfair : Customer Liability Management(Exposure).
Simple, fixed one off calculation cost.
Very easy to optimise.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
54/63
Tradefair: Customer Liability Management(Exposure).
For binaries same as Betfair (exactly).
For spreads more complicated.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
Driven by market.
More order types.
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
55/63
Solution: Liability Management.
Not actually the bottleneck forthroughput in Flywheel architecture.
Number of nice algorithmic workarounds.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
.
Optimise actual calculation.
Avoid broad distribution of updates.
Core Flywheel patterns give solutionif ever does become overallbottleneck.
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
56/63
Betfair: Bet matching.
Large number of market types.
A large number of markets.
Straight forward order types
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
,market suspended or order
modified.
Already well optimised withoutgetting into exotic technologies.
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
57/63
Tradefair: Order matching
Small number of market types (interms of business logic).
Smaller number of markets, butmore consistent throughput.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Large number of different order
types (time sensitive, conditional,immediate, lapsable).
Need for immediate settlement.
-
8/14/2019 From Betting to Gaming to Tradefair
58/63
-
8/14/2019 From Betting to Gaming to Tradefair
59/63
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
60/63
Data distribution: Tradefair.
Push website.
Pushed Data.
Standard financials API (FIX).
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
Tick by tick granularity.
Transport reliability
TRADEFAIR.
-
8/14/2019 From Betting to Gaming to Tradefair
61/63
Solution.
Flywheel inherently message driven.
Need series of adapters to translateinternal and external messages.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
consistency problem core
technology can be reused for this.
FURTHER WORK.
-
8/14/2019 From Betting to Gaming to Tradefair
62/63
Geographic Separation.
Regulation.
Generality.
Latency.
HA.
Fault tolerance.
CONFIDENTIAL and not for reproduction without prior written consent. of the Sporting Exchange Limited
More importantly: Deploy across Betfair and Tradefair.
.
Integration. Complexity.
Hardware.
-
8/14/2019 From Betting to Gaming to Tradefair
63/63