React applictaion on EC2 or S3?

0

I currently have five React applications hosted on a single EC2 instance. I've heard that it's possible to host React applications on Amazon S3 as well. I'm interested in determining which hosting option is more cost-effective, taking into account all aspects, with a primary focus on data transfer costs.

Fasil
preguntada hace 7 meses306 visualizaciones
2 Respuestas
0

Hello.

As you know, it is possible to host React.js on S3.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-react-based-single-page-application-to-amazon-s3-and-cloudfront.html

In terms of server management costs, I think hosting with S3 will be cheaper.
There shouldn't be much of a difference in data transfer charges between EC2 and S3.
https://aws.amazon.com/s3/pricing/?nc1=h_ls
https://aws.amazon.com/ec2/pricing/on-demand/?nc1=h_ls#Data_Transfer

profile picture
EXPERTO
respondido hace 7 meses
profile pictureAWS
EXPERTO
revisado hace 7 meses
  • Agreed, If you compare monthly storage price of 1 GB in S3 to the hourly cost of your instance of choice, you'll be able to compute the savings

  • If you put CloudFront in front of the S3 bucket, the data transfer costs will generally lower than serving from S3 directly plus it has quite a generous free tier.

    https://aws.amazon.com/cloudfront/pricing/

0

S3 will be cheaper , you only pay storage. Data transfer will apply to both

respondido hace 7 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.

Pautas para responder preguntas