Skip to content

Amplify hosting (nextjs SSR) : where does the server code run?

0

When using Amplify hosting for nextJS with server side rendering, where does the server code run?

I know that it's serverless system, but it is not obvious to me where does the code run.

And unlike Amplify backend, I have not seen any resources created in my account for the hosting. Any documentation will be greatly appreciated.

2 Answers
1
Accepted Answer

AWS Amplify Hosting is a fully managed CI/CD and hosting service, so you won't see the underlying compute resources created for hosting as they are automatically managed by the hosting service. Compare to other serverless compute services like Lambda.

https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html

This AWS Tech Talk on Amplify Hosting SSR covers it well, and describes the hosting as a "web compute platform":

https://www.youtube.com/watch?v=SMrYo55_QhU

answered 3 years ago
EXPERT
reviewed 2 years ago
0

Hey,

Hope you're keeping well.

When you deploy a Next.js SSR app to Amplify Hosting, the server-side rendering code runs on a managed AWS compute environment that Amplify provisions behind the scenes. It uses AWS Lambda@Edge functions deployed via Amazon CloudFront to execute the SSR logic close to the viewer, so you won’t see EC2 instances or traditional backend resources in your account. This is fully abstracted, so all infrastructure is created and managed within the Amplify Hosting service. You can find more details in the Amplify Next.js SSR documentation, which explains how requests are routed and rendered server-side.

Thanks and regards,
Taz

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.