Scaling: Amplify vs Elastic Beanstalk/CloudFormation
I am learning about Elastic Beanstalk and CloudFormation after having a little bit of experience with Amplify.
I have an Amplify website using Next.js, my use case doesn't require data storage yet and i've been able to handle any 'backendish' related needs using lambda+api gateway+s3.
I know I dont have any EC2 instances and ASGs set up when running my Amplify site and that makes me doubt that it can handle the same load that true infrastructure or infrastructure as software can.
I have never been able to get a good yes or no answer regarding if Amplify can handle huge traffic spikes. I've read and heard from support that you can increase your service limit quota for lambda to help in this area but that seems very static and arbitrary - not at all a dynamic system like ASGs.
It feels like ESB/CloudFormation would probably better suited to handle spikey traffic? Can someone with more experience let me know if this is true?
Lambda can scale to handle traffic spikes much faster than EC2 autoscaling.
The first time you invoke your function, AWS Lambda creates an instance of the function and runs its handler method to process the event. When the function returns a response, it stays active and waits to process additional events. If you invoke the function again while the first event is being processed, Lambda initializes another instance, and the function processes the two events concurrently. As more events come in, Lambda routes them to available instances and creates new instances as needed.
The default regional concurrency quota starts at 1,000 instances. Let's say your function execution time is 10ms, this means you can handle 100,000 executions per second without requesting a quota increase.
Amplify Build Times with React SPAasked 4 months ago
How to deploy to single instance Elastic Beanstalk worker environment using CodePipeline?asked 5 months ago
build for CodeCommit backed Amplify website creation via CloudFormation not triggeredasked 3 months ago
elastic beanstalkasked a month ago
How to host a Nuxt.js SSR app on Amplifyasked 9 months ago
Create domain association failed One or more domains requested are already associated with another Amplify app: bakeone.in, www.bakeone.inasked a month ago
Elastic Beanstalk stuck aborting current environment operationasked 2 months ago
How do I use Amazon CloudFront with AWS Elastic Beanstalk as the origin?Accepted AnswerEXPERTasked 2 years ago
Scaling: Amplify vs Elastic Beanstalk/CloudFormationAccepted Answerasked 5 months ago
Elastic Beanstalk with OpenLiteSpeed web server.asked 22 days ago