简体   繁体   English

我应该在哪个 AWS 服务中部署我的 react 应用程序

[英]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.

相关问题 如何将我的React App部署到FTP - How do I deploy my react app into my FTP 为什么我不能在 heroku 上部署我的 React 应用程序? - Why can't i deploy my react app on heroku? 当我部署到 Google App Engine 时,我的 React 前端没有改变 - My react frontend is not changing when I deploy to Google App Engine 将 React 应用程序部署到 AWS 时遇到错误 - Encounter error when deploy React app to AWS React App 无法在 AWS Amplify 上部署 - React App unable to deploy on AWS Amplify 如何使用快速后端部署在 Cpanel 上部署我的 React 应用程序 - How can I deploy my react app with express back end deploy on Cpanel 如何将React Webpack Web应用程序部署到Azure App Service? - How do I deploy a React Webpack web app to Azure App Service? 如何将 React 应用程序的生产 npm 构建部署到 Azure 应用服务 - How can I deploy production npm build of react app to Azure App Service 如何在AWS上上传我的React api应用程序? - How can I upload my React api app on AWS? 如何在AWS Lambda Serverless或S3中部署React应用 - how can I deploy a react app in aws lambda serverless or S3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM