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
已提問 7 個月前檢視次數 307 次
2 個答案
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
專家
已回答 7 個月前
profile pictureAWS
專家
已審閱 7 個月前
  • 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

已回答 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南