480 points · by bryanmau1 · 10y ago · 211 comments
It would be naive for everyone to assume that a high traffic launch is all about the cloud underneath and only that.
The article didn't mention any of the technical details of the Pokemon application itself, for all we know the infrastructure was humming nicely and the application itself didn't scale. Or the other way around, or a combination of both or one of the other of thousands of moving pieces it takes to launch something.
That's pretty low. FWIW Simcity 2013 is on AWS and the launch was far more disastrous. Doesn't prove anything.
I think Pokemon scaled remarkably better than any app many of us have ever dealt with, seeing the crazy demand spikes. You would run into a lot of app issues, data choices, a lot of things that don't just get solved from simple uses of autoscaling.
"Google CRE worked hand-in-hand with Niantic to review every part of their architecture, tapping the expertise of core Google Cloud engineers and product managers"
Architecture analysis may or may not be standard (I don't actually know since I've never had to deal with something like this) but that sounds great to me.
Gold and Platinum support can help with architectural analysis. I'm also guessing Google had a vested interest to help Pokemon Go do an analysis of their architecture. Doing so could help find any inefficiencies to lighten the load on their cloud servers.
That being said, they really should've done better at predicting hype, especially since they had beta sign up and all.
https://www.reddit.com/r/pokemongo/comments/4rwrhf/amazons_c...
Werner actually posted as himself in that Reddit thread ^
"Guys, this was not intended as a snark, joke, rip or self-promotion. I just want people (including myself) to play given how much fun it is. We have some experience in running big software systems that need to scale and just want to help.
Update for the skeptics: yes I am @werner, not Amazon PR. I have the same username on Instagram."
EDIT: Unless you can prove the snark or malicious intent was there, to say otherwise is disingenuous.
This is called back-peddling.
http://www.businessinsider.com/amazon-cto-makes-dig-at-pokem...
The omission of that fact may cause the reader to infer that Google Cloud Platform was chosen for it's technical merits, and not because the company was actually a Google team that spun out.
That said... in reality, they likely had real reasons to use Google since they probably have a higher expertise with it that AWS.
Like contending with Team Rocket
IMO This is the most valuable thing in this article. It essentially says what others are pointing out. You can't just press a button and have scale. It's not that easy. You have to tackle many layers. Considering they 50x'd their worst case scenario it would have only taken a few bad queries to fuck shit up.
I wouldn't expect any service to survive that much unplanned load. Maybe they could've estimated better, but how likely was it for the game to go viral? Worth sinking lots of dev time into and delaying launch? That's a hard question to answer without the benefit of hindsight.
The hard part about scaling is knowing when to invest in scale. The binomial choice is to build and throw away, or build so as to be scalable. So hard to predict.
Nitpick: they 10x'd their worst case scenario
Actually you can... if the system was designed for this purpose.
Rrrrrright?
It's known that some things will break from time to time (e.g. servers, hard drives, networking). If you've designed the application poorly so that a single minor failure can snowball to the entire system, it's guaranteed that your site will fall apart periodically, costing you lots of money each time.
At this point, the best technical AND business converge to "pick an option that can sustain [minor] breakages". Either you've done it like that from the start, or you're in the process of rewriting/redesigning your site.
Queues, buffers, locks all have ways of interacting at high volume that defy prediction. And if you think your system has no queues or locks then you just haven't looked deeply enough.
Just because you have the resources does not make for a well scaling service. As outlined in the post, "Google CRE worked hand-in-hand with Niantic to review every part of their architecture, tapping the expertise of core Google Cloud engineers and product managers". Look past the chart, this wasn't just an estimate for Google, it was also for Niantic. You don't have unlimited development resources, not every aspect of an application may have had the time to flesh out a scale-able approach.
Netflix didn't scale out overnight. I'm sure we've seen their techblog about X extremely specialized framework/tool they've built out over the years. I'm impressed with how quickly Niantic achieved a playable experience.
I have mixed feelings about this, didn't they drop more than half their peak user base to achieve playable experience?
However, it became perfectly playable after their "tracker patch" (which was the trigger for the massive exodus that followed).
No doubt, the CRE program could prove valuable. But in this case, they are congratulating themselves on a rocky and widely panned launch of a product on their platform. One might wonder, "If this is what deploying a viral app on Google Cloud Platform looks like when you have help from Google engineers, what chance does anyone else have of getting something right on their platform?"
I think that's probably the wrong takeaway, but it's not difficult for me to imagine that being the only conclusion one has.
If I linked an old style "HP Whitepaper about Success with Customer X" it would be downvoted to hell - but that's exactly what this article is, but by Google instead of HP.
https://4.bp.blogspot.com/-GLc5ve5_djc/V-ysZgW6uDI/AAAAAAAAD...
The worst case scenario was 5x, which was a factor of 10 off. If you are that far off when you do your capacity planning, you can be pretty sure you've got problems throughout your entire stack.
That said, what you said is still true. If you're thinking you're going to have 100k users, you might be willing to allow a lot more data to be transmitted and/or processed than if you had 10m users. Just looking at tracker alone, having to transmit and measure distance between a dozen points and ordering them is a lot more work than checking whether a dozen coordinates are within a range and listing them in any order.
I don't believe this for a second. Nintendo knows where its goldmines are. IMHO it is far more likely that they steered clear of mobile because they didn't want to cannibalize their Game Boy sales. It's a classic case of a big corporation being slow to react to change or even trying to stop it because they hold a dominant position in the old system.
Nintendo would much prefer if "mobile gaming" still meant Game Boys but the world has already made their decision and they can't stop it. They can't ignore the sales figures on what would have otherwise been an obscure goofy spinoff fitness app on the Game Boy. They've ignored the mobile market for too long and now there is pent up demand. Without Pokemon Go I doubt you would have seen the sudden scramble to develop and release a Mario game for iPhone.
The article says (in one of the only bits of real information) that they blasted past their estimates with only Australia and NZ just 15m after launch.
Whoever came up with those numbers must have had some serious methodology flaws. I know they couldn't predict that it would become the biggest online game ever for a while, but the initial demand prediction was clearly way off even before it started growing like a rocket.
And you're sitting there as the engineering lead or staff going, "How do I even feel about this? Fortunately I have no time to feel because I am off to fight fires." I didn't go home for 2 days, I worked 82 hours that week and >70 the next.
Complaining that the estimates are bad for a product that literally broke everything we know about how to build a successful mobile game and has scaled to a truly unprecedented level is meaningless. Obviously no one expected this. Obviously the engineers wouldn't have wanted it. Obviously the world will respond the way it will to our work.
Show some compassion. But also some humility. None of us are qualified to make projections in the face of phenomena like this.
Pokemon Go became the most-downloaded app in history within the first few days.
Are you saying that's the bar that people should estimate at launch?
When it comes down to it, the game is closer to a fitness app than a Pokemon game and can be described as bare bones. The fancy accessory wasn't even available at launch. Many of the players are people who have not bought a Pokemon game in over a decade, or ever in some cases.
If there is one area I can solidly criticize Niantic for it is rushing the other region releases so quickly. It's clear the servers were already badly overloaded and they just started adding countries left and right. I know it sucks for people who live in those countries to have to sit out while the rest of the world is having fun, but it's really not much more fun to sit at the eternal loading screen because the backend is entirely on fire.
A mobile game, available to be downloaded onto hundreds of millions of phones, that is also FREE? I feel like they broke 100 million in the first day at the latest (counting totals from each region's first day). It wouldn't surprise me if it's significantly higher than that.
Media, users; everyone has been BEGGING Nintendo to release IP to mobile devices but they have kept it locked up in their own hardware. If no one had even a rough idea of the possible popularity they most certainly had a very, very wrong methodology.
> In response, Google CRE seamlessly provisioned extra capacity on behalf of Niantic to stay well ahead of their record-setting growth.
Anyone who played that game within the first week of launch would certainly not use "seamless" to describe the experience.
You could argue that Google was providing GCE and therefore GCE couldn't scale, but GCE is really just hosted Kubernetes and it's scaling limits were known in advance. Luckily GCP was able to push a quick version update and migrate the cluster but that took considerable time, coordination and engineering effort that couldn't be done "seamlessly".
This is a clear situation where the software Niantic chose couldn't handle the resources that were available. It turns out a lot of the choices you made for your worst case capacity aren't necessarily adequate for 50x that amount :)
(disclaimer I work at Google but not on GCP)
I think a large part of that was due to the non-Google login from Pokemon Trainer Club (which must have been handled by Nintendo's servers, AFAIK), as opposed to the Google OAuth. Both groups of users had problems, but people who used their pre-existing, Nintendo-issued logins had much more problems (and it took a lot longer for those to get fixed).
There was a period of about a week or so during which time people who used the Pokemon Trainer Club accounts were still having just as much trouble logging in and staying logged in, but people who used their Google accounts were fine.
I wouldn't be surprised if providing multiple login options made it harder for them to properly separate their login servers from their game servers, and if this coupling meant that millions of users (effectively) DDoSing the PTC servers ended up impacting the game's uptime more than simply doing all authentication themselves would have.
I can't think of anything further from the problems this game had at launch than the login. So few people actually had pokemon logins this comment is honestly comical to me.
"reliable"
"low-latency"
However, the Pokemon Go player in me says "Wow, even with all of Google's resources, they still couldn't manage to get this remotely stable for several weeks?".
I'm sure there was many amazing technical feats that occurred, and from a deeply technical level this is a good sales pitch. I'm sure a good sales person could spin it even better "50x your expected traffic? Google Cloud can do that!". But beyond that... most people will probably see this as a failure.
From watching my partner play the game (from Canada), the scaling issues went on for days and it serverly hampered her enjoyment of the game. This should be a cautionary tale of having worse case scenario planning at launch time, which a large organization like Nintendo should have factored in (when planning with Niantic).
This article doesn't fairly reflect that. But maybe they are acting confident now because they will be better prepared next time? They can point to Pokemon Go to why you need experts who have been through the trenches of a rocky high-traffic launch.
The "without incident" part is hilarious. The game was unusable for over a week when they added more countries. There were memes all over the place about Niantic execs ignoring the burning server and pushing to launch in more countries anyway. I wonder if any of them actually tried to play as a user on the public servers and spent hours trying to logon and it failing, or locking up soon after for a week.
Not to mention they never even got the original tracker functionality (1 footstep, 2 footstep, 3 footstep for anything nearby) working again after that, they had to replace it with a lower load knock off where you just see what is around a certain location that isn't very popular. So not only did they not even keep login working, they cut features too.
...But, according to the nightly news, it was a tremendous success. The word 'ever' came up a lot.
PMG was the first successful overnight/viral planet-wide/client-side launch. People who had never heard of it saw it on the news and then visited their local app store in response.
And according to the googleblog, it took a tremendous expenditure of money, hardware, electricity, skills, and knowledge to pull it off.
Makes me wonder... Did some other game/app go almost global, but fall short for the want of those very resources described in the blog post?
Something for app devs to think about.
Google's post is weird because they seem to think the game was a technical success. Google may have done great, it's impossible to tell from the outside, but the actual user experience is - or at least was when I played it - awful.
So not total-success, but very successful for the situation at hand.
(disclaimer: I work at Google but not on GCP)
I don't want to criticize their model too much, because it's obviously simplified for our benefit. However, it appears that their worst-case scenario was "What if we become the next bejeweled or [insert popular F2P game here]?" It's a ridiculous assumption, because Pokemon has a much broader appeal than any other casual game, cause the IP is so insanely popular, and the game still appeals to people who just want a casual game. I know it is a lot easier to get fired for spending too much money than it is for not spending enough, but it's a stretch to say their launch traffic was beyond imagination. Niantic should start looking for new analysts now if their current analysts honestly thought this traffic was outside the realm of possibility.
I don't consider the server issues to be much of a problem though. It's hard to ensure everything will work perfectly under that kind of load. You have to accurately predict who will be playing, how much they will be playing, how they will interact with the game, and so much more. However, I do think they need to figure out their communication with the fan base. I know that there will be a vocal portion of any constituency that hates everything. That isn't a good excuse for communicating poorly. Good communication will help almost every relationship.
There's no Y axis on the chart, so we don't know exactly what their estimate actually was. Regardless, I'm pretty sure Pokemon GO exceeded any reasonable expectations of popularity, even accounting for the brand and marketing efforts behind it.
From my own experience, lots of people that never engaged with mobile games before started playing Pokemon GO within days of its release. My entire extending family was playing the game. Local bars have become arenas for Pokemon fights. The adoption of this game was absolutely crazy.
So even given the scaling problems, the features they had to remove from the game, and the bugs they introduced, I think this is still a solid win for Google CRE.
For example, one of the highest estimates of daily US users I saw was 25 million. That's way more than I would have guessed off the top of my head, but it's no where near 10 times what I would have guessed the "worst case" scenario would have been. Pokemon Red and Blue sold 9.85 million copies on gameboy alone. My worst case scenario would assume that literally everyone who played the game as a kid would want to check out the game as an adult. Our worse case is massively more accurate than theirs just using the Gameboy numbers alone, with the assumption that each cart sold was only played by one person.
The assumption that people who have never played mobile games before wouldn't be interested in Pokemon is kind of crazy as well. I can't think of another mobile game that has as much name recognition before it released as Pokemon go. It's a beloved franchise, whose popularity spans generations. On top of that, cellphones are far more ubiquitous than the gameboy ever was. There are people who are playing Pokemon go who have never been in to mobile gaming, but I doubt the number of people playing Pokemon Go who have never played another video game in their life is much, much, much smaller.
We had our team building event for my company at an barcade last year. Every single high score was set by someone older than 50. Literally every single person at the company had played Ms. Pac Man before, including some people who literally have never owned a cell phone. The people who don't own a cellphone are obviously not playing Pokemon Go, but video games are not niche, and have not been niche for a long time now.
I will give Niantic massive credit for recognizing how much of a problem this was going to be immediately. I'm sure I would have under-allocated resources on launch day too, and I don't see myself handling that issue as well. Still, there's no way in hell what actually happened would be 10x worse than my actual worse case.
That was two games, and that was "by the end of their run".
>The assumption that people who have never played mobile games before wouldn't be interested in Pokemon is kind of crazy as well. I can't think of another mobile game that has as much name recognition before it released as Pokemon go. It's a beloved franchise, whose popularity spans generations. On top of that, cellphones are far more ubiquitous than the gameboy ever was. There are people who are playing Pokemon go who have never been in to mobile gaming, but I doubt the number of people playing Pokemon Go who have never played another video game in their life is much, much, much smaller.
You're aided by hindsight. PKGO grew faster than any prior mobile game or any previous pokemon IP, by a large margin.
That makes the article a lot less interesting and worthwhile.
So yes this is a PR piece. Not very technical at all.
That's pretty misleading - I believe Google's parent company still own part of Niantic. So other customers shouldn't expect the (implied) same access to Google resources.
Alsop Louie Partners
Cyan Banister
Lucas Nealan
Nintendo
Pokémon
Scott Banister
You & Mr Jones Brandtech Ventures
Or in the vernacular of youth: "This is fine. Everything is fine" as a scaling graph.
http://www.gamasutra.com/view/news/168799/Scale_Something_Ho...
The launch in Europe was a catastrophe imo (constant crashes and freezes). I don't know how much of this is to blame on the cloud infrastructure but I suspect it's not nothing. I feel they didn't provide nearly enough infrastructure given the data they should have had from Australia/USA.
All that being said I think they smoothed out everything and the system seems to be running very nicely now given the scale. It's certainly a positive engineering tale overall.
[1] https://www.quora.com/What-server-infrastructure-is-Pok%C3%A...
Interestingly, the one time they did decide to communicate was when they announced that they banned a bunch of third parties from accessing their server[1]. Of course, just like in this post, they show a graph with a missing y-axis which tells you very little about the traffic they actually received.
It's surprising that this wasn't mentioned in the Google blog, since according to Niantic it was thanks to this ban that they were able to launch in more regions.
Being this type of site I wonder if a lot of the employee's at Niantic have accounts and could be down voting?
Either way it would be nice to hear why other users are down voting these because the users comment is within the guidelines.
I'm most curious about how they identified issues. Obviously crash reports are a thing, maybe traffic to a login error page, twitter complaints etc...
I wonder how they managed prioritizing issues.
I was previously interested in the game but Niantic has shown zero interest in being responsive to the community's concerns.
Even with the servers stabilized the game has plenty of other issues that need addressing. The "nearby Pokemon" window is still broken and shows no sign of ever getting fixed. People in suburbs and rural environments are still stuck playing in extra grindy hard mode. The distance tracking has a speed limit that is way too slow (10.5kph) and noisy so it largely fails if you jog and or get on a bike. The gym battles are comically out of balance (slow defensive Pokemon are blatantly overpowered).
They shouldn't be hard problems to fix but Niantic doesn't seem interested. They toyed with a half-fix to the nearby Pokemon window, but only deployed it in their hometown and then seemingly forgot about it. It's clear the client has enough data to do the launch style footsteps (see: all of the PokeRadar apps on the store), but for some reason Niantic has no interest in re-enabling it.
I've always suspected that was because they quickly realized that getting pokemon to not spawn in dangerous spots was an insurmountable task, so having tracking that encourages players to go to those locations was asking for even more lawsuits that what they face currently for that issue.
edit: added quote I was responding to
Especially a success that they went out of their way to avoid by creating a new battle system instead of using what's already there.
However this is all irrelevant considering they spent a month or two deciding to ban these devices and it only took 3 weeks for new scanner apps to pop up that potentially will never be brought down [1] the owner claims they will never be taken down now in his posts which makes me wonder if he is balance loading thousands of accounts to prevent Niantic from banning his application from working - which really it was bound to happen eventually just needed the time for some to write out the necessary code and figure out a quick way to authorize and potentially keep creating accounts.
In all honesty I believe the ban on rooted/jailbroken devices was really to remove people who were not contributing as much money to the game. In my experience a rooted device usually signifies the user wants to pay less for/in apps.
Of course many users need rooting for backing up, tweaking the interface for better performance, but in the end most rooted users did this method to install hacked apps or circumvent some restriction that they would normally have to pay for (such as wifi tethering).
It is silly and I am more then just frustrated that I had to spend hours getting Magisk installed to keep playing but in the end they are a business and the main focus is making money.
edit Apologies I must have read over you mentioning the Magisk method!
edit2 also I have a lot of friends who bought phone's pre-rooted so it goes to say it's not really a smart maneuver on Niantics part to just assume people are rooting devices purposely.
Eh, it's too much of a pain to hide my root. I'll never play this game again.
You could make an offline Pokemon Go version and not notice any difference.
Blizzard scaled using appropriate technologies for its time. i.e. sharding basted on "Realm" and enforcing active player limits. This scaling mechanism was used by every MMO I knew about until EVE.
EVE pioneered the modern MMO. It is no longer acceptable for an MMO to be sharded by server. Even WoW has been aggressively trying to scale its architecture and infra such that it can re-connect these shards into more cohesive worlds. With the most credit to them, they have a lot of technical debt in this regard, but the fact that some servers are labeled "full" with wait queues to join, implies that they still don't have the technology to scale let alone connect all their servers[0].
[0] Note, there are also other reasons (i.e. in-game economical and political reasons) why they are not aggressively connecting more shards.
> One system cannot scale over more than one server.
In this regard, Blizzard's dynamic realms are really interesting. Ideally, we can move to a world, where even single "systems"/"zones"/"areas" are able to scale horizontally.
I have zero experience with it, so I don't know if it can practically scale to solve this problem, but http://www.paralleluniverse.co/spacebase/ has a really cool set of features that MMOs could take advantage of.
I'd wager that at any point in time WoW dealt with higher player densities than Pokemon Go, realms or no realms. Certainly higher data densities with VASTLY higher latency requirements.
Of course in EVE, when the whole Python shambles eventually crumble under the load, they just slow down time. I also think there is some Excel spreadsheet you are supposed to fill out prior to a battle so they can deploy some more Cython before that epic MMO experience.
(I think EVE is great, it's just also a hilariously convoluted Python hack sending serialized objects rivaling XML in complexity over TCP. Not much leverage in that for other game types.)
How much are you willing to bet? I'd definitely take that bet.
What it probably shows is that using the cloud isn't a magic bullet to making you scale indefinitely, you need to work on your code to decouple from the infrastructure too.