Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
sariel84473yIs it routine? If you know it's coming at the same time you can scale 30 minutes before.
-
is it unforeseen legitimate traffic? Perhaps you don't even need to scale for it -- just filter it out? And if it's legit and foreseen - scale for it in advance.
-
devs30753yThe load is expected. This specifically is is operations on our Redis database that we use for caching. Our platform is for conferences, so the majority of the time we have no users, until suddently we have thousands of users simultaneously online for it.
We can sort of scale for it in advance, unless too much is going on at the same time (we're two developers managing the environment + managing other developers + prorgamming).
Spiky load is always fun.
Application wise we use Kubernetes and tend to run with a fairly large overhead, so auto scaling can catch up. -
The E in EC2 stands for Elastic; EC2 instances accumulate CPU credit which can then be used to handle spikes.
-
sariel84473y@devs this is a fun project to plan and build for.
If you have enough data you could actually train an AI to look for early indicators that would determine these spikes and scale out to accommodate.
With a combination of data sources like the traffic you're showing along with app logs, database content based on venue dates it's possible to accomplish this.
This is no different than how Netflix handles their own scalability problems.
Related Rants
It's so difficult to scale for this type of load...
rant
spiky load
scaling