Writing
Satellite-grade resilience, from data centre to cloud
· Platform design
Two ideas shaped the Sky live-streaming platform I helped design: the single-channel fault domain, a synchronised live channel across two places, designed so a healthy copy could take over without interrupting playback; and portability, so the architecture can move when the business changes cloud. Behind both was a principle from Sky’s satellite heritage: treat live streaming with the same resilience and engineering quality we expected from satellite television. I led the solution architecture for that work, partnering with Site Reliability Engineering, network design, vendors and the engineering and operations teams who built and ran the platform. I did not build the infrastructure myself.
That bar mattered because, when this work was under way, live streaming was still relatively new compared with decades of satellite TV, and broadband was slower and less forgiving.
New to streaming? My short video, Stadium to phone, shows how live video gets from the stadium to your phone.
From appliances to software-defined streaming
The first generation, from around 2009, used vendor appliances in the data centre. Video came in, streams went out and a content delivery network carried them to customers. It worked while the audience was small. As usage grew, it did not scale well enough. That forced a redesign.
The second generation was a dedicated video network (the DVN) I designed with the network and engineering teams between 2010 and 2012: an in-house delivery platform organised into zones and pods. Sky Go and NOW TV ran on that foundation. I talked about parts of that journey in my Streaming Forum 2018 keynote, Streaming in the Land of Containers.
The third generation, from 2017, was software-defined streaming. Still on-premises, we moved from virtual machines to Kubernetes and microservices. Site Reliability Engineering colleagues pushed for it. The industry, vendors included, was still early with microservices and Kubernetes. One channel per virtual machine had been wasteful. Shared appliances and boxes could also fail together, taking several channels at once. Microservices let each channel’s components be isolated, scheduled and restarted independently on shared nodes, which helped contain a fault to that channel. That was necessary, but it was not enough on its own.
We called the highly available design the single-channel fault domain: a synchronised live channel across two data centres, designed so the system could heal itself without interrupting playback. The same live channel ran in two places at once, with both copies kept in step, so viewers could be switched to the healthy side if one had a problem. At Streaming Forum 2018 I talked about containing a fault to one channel. I described the two-site design at Google Cloud Next ’19.
Both origins can serve the channel. If A stops updating, the health check fails and the delivery layer fetches from B. If the site is down, the CDN uses B.
Kubernetes is Kubernetes is Kubernetes
I designed the platform to be portable. The aim was not to run everywhere at once. It was to stop the streaming architecture being tied to one place.
That idea has a short line I still use:
Kubernetes is Kubernetes is Kubernetes.
It is a slight oversimplification. Major upgrades break things. Dependencies matter. Backward compatibility is never free. But the intention held: design so you could deploy the same live channel on-premises, then on Kubernetes in one cloud, then in another, without rewriting the product. The goal was to treat all channels equally wherever possible.
Choosing a cloud provider was a business decision, and it changed when the business changed. My job was to make the platform portable enough to follow that decision.
The two-copy design carried over from on-premises to Google Cloud. The same pattern could be deployed in another cloud.
Moving the platform
The first cloud move, into Google Cloud, was the harder one. We took software-defined streaming off constrained physical resources on-premises and into the cloud. Scaling and compute stopped being a hardware ordering problem and became a budget line.
Portability meant a later cloud decision need not mean starting again. After the first move, much of the software side was already in place: the SRE team had built continuous integration and continuous deployment pipelines, and used infrastructure-as-code so instances and services could be stood up in a comparable way. Connectivity into a new environment still had to be built separately, and pipelines and automation would need extending. I worked with the network designers (I was no longer designing the networks myself) on resilient paths from the broadcast locations into multiple cloud regions. Resilience only works if you design it in from the start.
The single-channel fault domain needed that same care when the platform moved. The same live channel ran in two sites or regions at once, so either could serve viewers. The two sites produced the same live output; if one side had a problem, viewers could be switched to the healthy one. On the older appliances, the two copies of a channel did not stay in step, so we could only run them as primary and standby, and switching between them could break playback. With Harmonic, we designed both copies to stay in step, so either could serve the channel. We started across two data centres on-premises, then ran in two Google Cloud regions. At Google Cloud Next ’19 we showed the same design failing over between zones. I helped champion that approach with the vendor partners who built the media processing alongside us.
The trade-off was real. It took significant development effort with partners who were still early with microservices and Kubernetes. It also took a lot of testing time. In return the SRE team could use blue/green patterns to switch a channel across to the other copy during a software update, rather than taking it off air.
At Google Cloud Next ’19 in San Francisco I co-presented that work with Melika Golkaram of Google and Moore Macauley of Harmonic. I covered the Software Defined Streaming platform and the single-channel fault domain. Moore showed how Harmonic had collaborated with Sky and Google on the engineering, and demonstrated a live channel running in Google Cloud, including failover between zones. The session recording and slides are still public: a joint broadcaster, cloud and vendor session on live sports streaming.
What we were aiming for
Under the floor, a lot changed: appliances to an in-house network, then containers, then Kubernetes and into the cloud. What we aimed for did not. A live channel could run on-premises or in Google Cloud and still be the same channel. The architecture was designed to be able to follow a later cloud decision the same way. I still try to work that way: keep it portable, treat every channel equally and remember the person who only wanted the match or the episode to play.
I’ve spent much of my career designing streaming platforms at Sky, and this is my own take on that work. It draws on public talks and sources and my own experience, and it is not an official Sky position.