ReplayLastGoal and CloudFlare: Fanning World Cup Flames

The World Cup is, at once, exhilarating and agonizing, and not just for those lucky souls in Rio or Manaus, folks working from home, or anyone else sitting happily in front of a TV. I’m talking about the quiet victories and silent pains loyal fans everywhere experience week after week at their desks. The muffled “YES!” breathed through your teeth as you check the FIFA app update; or a soft sigh when a text from a friend informs you that, yep, unfortunately, Belgium managed to score in overtime; and all too many of us know the slow burning resentment that accompanies those howls wafting through an open window from a bar near by. Sure, from your desk you can see the score, you can read the updates, you know who is winning—but you need to see that goal! And the major sports networks won’t start showing replays for hours!

Replay that last goal! NOW!

So, too, was Xavier Damman, co-founder of Storify, stuck at his desk during the World Cup. He felt our pain, but, unlike the rest of us, he also knew there was a solution. With a vision for innovation and disruption, Xavier spent a few long nights building Replaylastgoal.com. ReplayLastGoal is a Twitter bot that automatically records and posts—instantly—an animated gif of the most recent World Cup goal. By the time you get that phone alert, or start hearing those cheers from down the street, you can watch the goal yourself on Twitter via @ReplayLastGoal. I’ll say it for all the World Cup fanatics far from Brazil, out of reach of a TV, but still trying to follow the action from the office: Thank you.

Xavier thinks that automatic and instant generation of sports highlights is the way people will follow sports in the future. So what did he do? He open sourced his code, and kept the project not for profit. “Use my code!” Xavier exclaimed on the phone this afternoon, “FIFA! ESPN! use my code! Give your fans what they want: instant access to goal replays as they happen!” That’s the idea, and, to pour some sugar on top, Xavier wrote hooks for Hipchat, Slack, and Flowdock.

CloudFlare: changing the game, delivering the passion.

The World Cup is truly an international event, and Xavier created a simple solution to a global problem. ReplayLastGoal.com has changed the way those of us stuck in an office during the big game can participate in the glory.

It only took one server for Xavier to create and host ReplayLastGoal.com’s content, but, given the massive World Cup fan base, it wasn't scalable. At best, it would be great for a few friends to enjoy.

Sites like ReplayLastGoal.com are prone to downtime because, if they are massively popular, they see spikes in traffic, and those spikes can overwhelm a single server. You know this afternoon, as soon as Germany or Brazil score, thousands of people are going to want to see the replay, and ReplayLastGoal.com will get a flood of traffic.

That might be a problem if CloudFlare wasn't changing the game. But, in five minutes or less, Xavier put ReplayLastGoal.com on the CloudFlare network, letting us handle those traffic spikes. At the same time, we are able to distribute the content globally, bringing each goal closer to World Cup fans across the planet.

According to Xavier, "Developers have access to powerful tools that increase their productivity like never before. One developer in a garage can develop, in just a few nights, things that used to take months and months for a team to do. It’s companies like Cloudflare that make this possible. CloudFlare allowed me to focus on the core functionality of the app which is to automatically take a video clip and turn it into an animated GIF file. CloudFlare takes care of load balancing and distributes the content around the world through their CDN. I can rest easy because my server only has to be able to scale to serve one request."

Keeping ReplayLastGoal.com stable during spikes in traffic, and distributing its content globably is just one more way CloudFlare is changing the game to build a better web.