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달 전306회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠