amazon-web-services - 关于如何在 aws 上使用 cloudfront 和 global Accelerator 在同一域下公开前端/后端的建议
问题描述
我想使用 Cloudfront 来提供静态内容(React 前端 SPA)和指向 ALB(api 服务)的 Global Accelerator。我应该如何公开这两项服务?
For example, one solution might be (domain seperation)
1) api.example.com for my api (global accelerator)
2) example.com for my frontend (cloudfront),
or:
(same domain, based on URL routing, but how to achieve this?)
1) example.com for frontend, (cloudfront)
2) example.com/api for api (global accelerator)
3) example.com/assets for s3 bucket. (cloudfront)
Do you have any suggestions or better ways to achieve what I need?
Thanks
解决方案
推荐阅读
- algorithm - 多变量的复杂性
- operating-system - 进程驻留在辅助内存中时可以执行 IO 吗?
- java - 为什么 Spring Security 在所有表单帖子上总是以 403 Forbidden 响应?
- flutter - webdev 为 flutter_web helloworld 示例提供命令错误
- javascript - 带有反应导航的 React-Native 中 DrawerNavigator 中的问题
- python - 是 help() 和 license() 功能,但版权和学分不是?
- reactjs - 将 JS 文件导入 Next JS - 出现引用错误
- python - pip freeze 显示所有库,而不是我的虚拟环境中的库
- python - selenium 或其他网络爬虫工具是否对于将数据从 chrome 抓取到 python 脚本是强制性的
- python - 如何检查倒序字符串元组并将它们从 python 文件中删除?