The document summarizes Betsson's journey from a monolithic architecture to a microservices architecture. It describes how the company started with a single monolith supporting one brand, then scaled the monolith by adding instances as more brands were acquired. This led to challenges with scalability, isolation, availability, and deployments. Betsson then moved to a SOA approach with larger services, but still faced issues. The company is now adopting microservices with bounded contexts for each functionality. This allows independent scaling of services using service discovery with Consul. Docker is used to isolate services and make them portable. The future involves using cluster schedulers to distribute services across servers.
1 of 36
Download to read offline
More Related Content
Leetspeak
1. Scaling the gaming platform @Betsson
Journey of the monolith
Roger Johansson
Akka.NET Co-Founder
Twitter: @rogeralsing
Github: rogeralsing
Mail: roger.johansson@betsson.com Github.com/rogeralsing/presentations
All material
from this
presentation
2. ABOUT BETSSON GROUP
1766Employees (Q2 2016)
+ 500 tech employees
+ 40 nationalities
2121 different brands
Across Europe, Central Asia & Latin America
41%
563,247
Active players
(Q2 2016)
0%
5%
10%
15%
20%
25%
30%
35%
0
500
1,000
1,500
2,000
2,500
3,000
3,500
4,000
2011 2012 2013 2014 2015 H1 2016
SEKm
Profitable Growth
Revenue EBIT margin
1963Company
founded
2014
Revenue
SEK 3,722 m
2015
EBIT
SEK 886 m
73%
Casino
24%
Sportsbook
Share of revenue
Listed on Nasdaq
Large Cap
Share of revenue
(Q2 2016)
Mobile
19.1%
Top line CAGR of 19.1% (2012-2015)
3. What to expect from this talk
A bit of history on where we came from in terms of architecture
Geekery about microservices, service discovery, Docker and .NET Core
I will not talk about Akka.NET
I am not an Ops guy
7. Scaling the monolith
A monolithic application puts all its
functionality into a single process
and scales by replicating the
monolith on multiple servers
-Martin Fowler, James Lewis
18. Scaling Microservices
A microservice architecture puts
each element of functionality into a
separate service
and scales by distributing these services
across servers, replicating as needed
-Martin Fowler, James Lewis
35. Putting it all together
Show Rancher UI
Install Consul Docker Compose
Install Asp.NET Core services
Show Consul UI
Scale Services
Redeploy Services
Integrate with legacy services
Editor's Notes
#3: Founded in 1963
-strong history
-we know what were doing
Strong growth of approx 10% annually
and strong EBIT margins at around 25%. Q2 was a disappointment, but we have taken action and Q3 has started well.
Despite Q2 revenue was less than we hoped for, we have a strong underlying activity with an all time high of active players during Q2.
Betsson is listed at Nasdaq Stockholm large cap. Betssons board believes in return to shareholders and the direct yield is 5-5.5%.
We employ close to 1800 people across Europe. Our largest site, where I am based, is Malta with some 800 employees