create account

Introduction to the Tech Behind Bookie: BOS by bookieapp

View this thread on: hive.blogpeakd.comecency.com
· @bookieapp · (edited)
$2.25
Introduction to the Tech Behind Bookie: BOS
<center>![Bookie-HorzLogo-Black-RGB-PUBLIC BETA-yellow.png](https://steemitimages.com/DQmYfGSQuK4b8xtxA6TV6At5f4XH4DLCDdNXyfE7q7ZT4iG/Bookie-HorzLogo-Black-RGB-PUBLIC%20BETA-yellow.png)</center>
The previous article in this series introduced the concept of Data Proxies on Bookie. [Data Proxies](https://steemit.com/betting/@bookieapp/introduction-to-the-tech-behind-bookie-data-proxies) take care of Phase 1 of Bookie oracleization - they provide clean, normalized sports data to the Bookie ecosystem, using multiple external sources (third party data feeds). 

Phase 2 of the Bookie oracle process is concerned with merging these multiple data sources into a single, trusted record of sports data that facilitate consensus-driven injection of verified sports data into the Bookie back-end (which sits on the Peerplays blockchain). Verified sports data is used by Bookie to:
- create new sports events and matches 
- manage markets (e.g. turning markets in-play )
- resolving bets as winners (or losers) based on final results

Phase 2 is taken care of by what we call Bookie Oracle Software (or ‘BOS’ for short). Each of the block-producers of the Peerplays blockchain (called “Witnesses”) are required to run an instance of BOS. It’s easiest to understand BOS by looking at the three key functions it performs:

1. **Receive** sports data from multiple Data Proxies
2. **Merge** data from multiple Data Proxies
3. **Use** this merged data to **propose** data entry and amendment for Bookie

![BOS article steemit.jpg](https://steemitimages.com/DQmNUd8eBeAEjELArLokJMWSaxgTcYifvfr9fZjRTrMn5mJ/BOS%20article%20steemit.jpg)

Let’s take a closer look at each process.

**1. Receive sports data from multiple Data Proxies**
A Witness should ensure that their instance of BOS is receiving data from multiple Data Proxies. Currently, PBSA recommends that BOS is connected to a minimum of three Data Proxies. To connect to a Data Proxy, a Witnesses contacts the relevant Data Proxy operator, and they agree a kind of subscription where the Data Proxy adds that Witnesses BOS to a ‘data subscriber’ permission list.

**2. Merge data from multiple Data Proxies**
Once BOS is connected to an appropriate number of Data Proxies, it needs to merge these multiple streams of data into a single internal record of sports data specific to this instance of BOS. This merging is achieved by the application of simple rules that are similar to the consensus rules for the Peerplays blockchain proposal system. For example, BOS might merge data using the following rules:
*New Event*: data merge occurs when at least one connected Data Proxy reports New Event
*Result Report*: data merge occurs when a certain majority (e.g. 50%+1) of connected Data Proxies agree on Result.

**3. Use this merged data to propose data entry and amendment for Bookie**
Once a new piece of merged data is added to its internal record, BOS must next decide what actions (if any) to perform. To make this decision, BOS refers to a lookup table (which is distributed with BOS) called *‘bookiesports’.*

*bookiesports* is essentially a set of rules and recommendations about the sports, leagues, competitions, and betting markets that should be offered on Bookie. *bookiesports* also provides configuration information regarding betting market formats and standardized team/competitor names. Use of *bookiesports* allows Bookie to provide a coherent product offering that meets the expectations of the sports betting consumer. 

Based on the rules provided by *bookiesports,* BOS will use the newly merged piece of sports data to build a proposal that is submitted to the Peerplays blockchain. Other Witnesses signal their agreement by voting for the proposal (or abstaining if they do not agree with the proposal). Proposals must reach a consensus threshold of ‘for’ votes across all Witnesses before they are executed by the Peerplays blockchain and accepted as verified Bookie data. The consensus threshold is a simple majority of 50%+1.

BOS has been built to automate the three processes described. Automation of BOS is important, due to the huge amount of sports data being handled, and due to the 24 hour scheduling of global sporting events. For those edge cases where human intervention is required (due to issues with Data Feed Providers or Data Proxies, or due to novelty betting markets) BOS allows for manual intervention by Witnesses, using a sub-module called MINT (Manual Intervention Module). 

More about MINT in the next article in the series.
👍  , , , , , , , , , , , , , , , , , , ,
properties (23)
authorbookieapp
permlinkintroduction-to-the-tech-behind-bookie-bos
categorysports
json_metadata{"tags":["sports","bookieapp","peerplays","blockchain","gambling"],"image":["https://steemitimages.com/DQmYfGSQuK4b8xtxA6TV6At5f4XH4DLCDdNXyfE7q7ZT4iG/Bookie-HorzLogo-Black-RGB-PUBLIC%20BETA-yellow.png","https://steemitimages.com/DQmNUd8eBeAEjELArLokJMWSaxgTcYifvfr9fZjRTrMn5mJ/BOS%20article%20steemit.jpg"],"links":["https://steemit.com/betting/@bookieapp/introduction-to-the-tech-behind-bookie-data-proxies"],"app":"steemit/0.1","format":"markdown"}
created2018-03-29 15:34:27
last_update2018-03-29 15:50:39
depth0
children8
last_payout2018-04-05 15:34:27
cashout_time1969-12-31 23:59:59
total_payout_value1.719 HBD
curator_payout_value0.529 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,522
author_reputation1,493,535,791,872
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,297,720
net_rshares747,003,132,437
author_curate_reward""
vote details (20)
@buggedout ·
Sounds pretty good.  I am very keen to see this in action.  If you get first to market you'll do very well.
👍  
properties (23)
authorbuggedout
permlinkre-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180330t042414840z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-03-30 04:24:27
last_update2018-03-30 04:24:27
depth1
children1
last_payout2018-04-06 04:24:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation713,343,048,027,548
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,390,580
net_rshares602,184,573
author_curate_reward""
vote details (1)
@bookieapp ·
Hi @buggedout,

Glad to see you're as excited as we are! We can't wait for you (and everyone else) to see it.

Do you have a particular sport that you're most interested in betting on?
👍  
properties (23)
authorbookieapp
permlinkre-buggedout-re-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180403t162558248z
categorysports
json_metadata{"tags":["sports"],"users":["buggedout"],"app":"steemit/0.1"}
created2018-04-03 16:25:57
last_update2018-04-03 16:25:57
depth2
children0
last_payout2018-04-10 16:25:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length184
author_reputation1,493,535,791,872
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,145,608
net_rshares442,546,601
author_curate_reward""
vote details (1)
@full-steem-ahead ·
Slowly the details are emerging on how PeerPlays will function. This was a very long awaited block of information and I anxiously await more articles like it.
👍  
properties (23)
authorfull-steem-ahead
permlinkre-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180330t033807331z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-03-30 03:38:06
last_update2018-03-30 03:38:06
depth1
children1
last_payout2018-04-06 03:38:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length158
author_reputation30,177,498,572,933
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,385,381
net_rshares602,184,573
author_curate_reward""
vote details (1)
@bookieapp ·
There is a lot being done and we'll continue to update with articles like this. We appreciate the interest.
properties (22)
authorbookieapp
permlinkre-full-steem-ahead-re-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180403t141235024z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-04-03 14:12:33
last_update2018-04-03 14:12:33
depth2
children0
last_payout2018-04-10 14:12:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation1,493,535,791,872
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,124,872
net_rshares0
@gabrielvorbeck ·
It'd be awesome to use it for the FIFA World Cup!
👍  
properties (23)
authorgabrielvorbeck
permlinkre-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180329t201338537z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-03-29 20:13:42
last_update2018-03-29 20:13:42
depth1
children1
last_payout2018-04-05 20:13:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation2,528,868,246
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,337,274
net_rshares614,474,054
author_curate_reward""
vote details (1)
@bookieapp ·
Glad you are excited. We think so too!
properties (22)
authorbookieapp
permlinkre-gabrielvorbeck-re-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180403t141204762z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-04-03 14:12:03
last_update2018-04-03 14:12:03
depth2
children0
last_payout2018-04-10 14:12:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation1,493,535,791,872
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,124,795
net_rshares0
@jackchoros ·
Hey I'm a freelance crypto writer but I started my career in sports. Would love to see how I can work for bookie if you need content or help with community management. How can I get in touch? Bookie is right up my alley!
properties (22)
authorjackchoros
permlinkre-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180517t213707403z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-05-17 21:37:09
last_update2018-05-17 21:37:09
depth1
children0
last_payout2018-05-24 21:37:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length220
author_reputation38,874,096
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id56,258,448
net_rshares0
@melea ·
This is going to be great.
👍  
properties (23)
authormelea
permlinkre-bookieapp-introduction-to-the-tech-behind-bookie-bos-20180409t210951978z
categorysports
json_metadata{"tags":["sports"],"app":"steemit/0.1"}
created2018-04-09 21:09:54
last_update2018-04-09 21:09:54
depth1
children0
last_payout2018-04-16 21:09:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length26
author_reputation368,798,565,353
root_title"Introduction to the Tech Behind Bookie: BOS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,200,356
net_rshares0
author_curate_reward""
vote details (1)