Saltar al contenido

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.

preguntada hace 3 años1,7 mil visualizaciones

2 Respuestas
1
Respuesta aceptada

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

respondido hace 3 años

EXPERTO

revisado hace 3 años

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

respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.