[英]In which AWS service should I deploy my react app
I'am currently searching the best and cheapest solution to host my dashboard in react.js I wanna host it using one of the aws services.我目前正在寻找最好和最便宜的解决方案来在 react.js 中托管我的仪表板我想使用其中一种 aws 服务来托管它。 My configuration: The dashboard is already built and make calls to a separated API hosted on EC2 and I don't want to serve my dashboard from it.我的配置:仪表板已经构建并调用托管在 EC2 上的单独的 API,我不想从中提供我的仪表板。 The dashboard will receive a SMALL amount of requests since it's not dedicated to clients.仪表板将收到少量请求,因为它不是专用于客户的。 I have already fews solutions in my head but I never used them so I'am writing this post to ask your recommendation from your experiences.我脑子里已经有了一些解决方案,但我从未使用过它们,所以我写这篇文章是为了从你的经验中征求你的建议。 Potential solution:潜在的解决方案:
AWS S3 AWS S3
AWS EC2 AWS EC2
AWS AMPLIFY AWS 放大
AWS E BEANSTALK AWS E 豆茎
I guess that the amplify is a faster solution amongst them but my dashboard is already using an existing backend.我想放大是其中一个更快的解决方案,但我的仪表板已经在使用现有的后端。
What are your recommendation about this?您对此有何建议? what is the best cheapiest solution in this configuration这种配置中最便宜的解决方案是什么
Thank you,谢谢,
VK VK
S3 + CloudFront is always a good option to serve your front-end. S3 + CloudFront 始终是为您的前端服务的好选择。 Since you are not going to provide this service to your client, we can simply use S3 web hosting is fine.由于您不打算向您的客户提供此服务,我们可以简单地使用 S3 web 托管就可以了。
Don't forget to set your CORS and if you are using S3 web hosting without Cloudfront, your bucket name will need to equal to your domain name.不要忘记设置您的 CORS 并且如果您使用没有 Cloudfront 的 S3 web 托管,您的存储桶名称需要与您的域名相同。
The reason I don't recommend you use other solutions is I believe you know how Serverless affects us.我不建议您使用其他解决方案的原因是我相信您知道 Serverless 对我们的影响。 I assumed you don't want to manage the additional machine.我假设您不想管理额外的机器。 Therefore, S3 would be your best solution, it also supports header/logging/versioning.因此,S3 将是您最好的解决方案,它还支持 header/logging/versioning。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.