The Science of being super
Superology is now Happening
Platform
Fastly
Backend

Fastly: Pushing content closer to users

Superology leads the way when it comes to fast-paced technological innovation in the betting industry. Conventional systems are changing fast to accommodate millions of users demanding and consuming sports content constantly, even at 5 AM. Caching has become vital for content providers because end users have little tolerance for delays.
Fastly

The vision: To be small on the inside and big on the outside

Superology decided to use Fastly’s CDN Edge Cloud platform to speed up mobile applications by pushing content closer to its users, hence providing an upgraded user experience. Fastly’s global content delivery capabilities include caching services to accelerate the delivery of content and protect their origin servers, making the whole process faster, safer and smoother.

The move to Fastly was driven by a need for high-performance and streamlined workflows, initially for the mobile betting app. Our engineers wanted to simplify computing every user request (requests can peak at 15,000 per second). Fastly’s cache purging from the inside helps manage the large volume of content requests coming in.

The nature of live sports means that users have zero tolerance for time lags and blackouts. Fastly’s CDN provisioning at 130 Tbps with POPs strategically located and connected around the globe provides the needed performance and scalability. The origin load is kept at a minimum thanks to features such as request collapsing and origin shielding. Also, the ability to invalidate content in less than 150 milliseconds means that Superology can provide accurate information without delays.

Real-time metrics and speedy analysis

Real-time logs and statistics via the API provide Superology with the level of observability required to monitor all services and act instantly in case of trouble. In particular, new features require speedy analysis. And Fastly’s real-time log streaming integration to Amazon’s S3 helps the engineering team monitor and track all the APIs and run fast analytics on large amounts of data. The team found it easy to integrate S3 logs with an in-house analytics solution backed up by Clickhouse.

Delivered at the edge: World’s first sports fan social app for the betting industry

Authentication on the edge

Thanks to programmable VCL, Superology can authenticate users on the edge by verifying JWT tokens, so any request with an invalid or expired token will never reach origin servers. That helps the engineering team not to worry about potential high traffic of malicious users.

Caching streaming content

Fastly’s streaming miss technology enables Superology to cache streaming content. Chats and live match trackers are delivered by server-sent events (SSE), ensuring that only one request per resource reaches the origin servers, regardless of thousands of users watching.

Microservices and Fastly

Superology’s microservices architecture helps deal with cache invalidation. When the content changes, for example, a user changes a profile picture or comments in a chat, the corresponding microservice issues a command to purge the Fastly cache, which immediately updates the whole stack. By collecting the purge requests from all applications and having APIs per project, Superology gained the flexibility to do a fast lane purge from one place or spread the purges.

Developers empowered by a self-service approach

Easy integration and support

Prior Varnish knowledge made integration easy for Superology. The familiar terminology and Fastly’s articles written for developers rather than salespeople also enabled a painless migration. When new features are developed, the DevOps team transforms them into Terraform script, so delivering changes is reproducible and transparent across all environments.

Driving change

Superbet acquired Superology to lead the digital transformation of its products and build a culture of innovation on the group level. With the help of Fastly, Superology brings betting apps into line with the most popular social media apps and helps grow a thriving community within the industry.

Latest Posts

You're not the boss of me: empowered teams and where to find them
Engineering

You're not the boss of me: empowered teams and where to find them

We work in empowered teams. With users as our true stakeholders, we experiment, follow the data and only then – deliver...
How more downtime drives creativity and innovation
Culture

How more downtime drives creativity and innovation

As more and more companies are pushing creative ways of implementing a more sustainable work-life balance model, we're opting for unlimited vacation. That's just...
BEAM me up, Scotty: A short talk with Saša Jurić
Engineering

BEAM me up, Scotty: A short talk with Saša Jurić

Saša is a household name in the Elixir community, and his book, Elixir in Action, is a staple we at Superology already use for our backend developer onboarding...

We're hiring!

We're hiring

There are endless opportunities for improvement. We need great talents to make it happen.

But first, cookies
This site needs cookies to function. We all do. Along with the necessary ones, we would like to use additional cookies to improve your experience.
Necessary Cookies
Info
Analytics Cookies
Info
Read more about it in our Cookie Policy.