默认服务在 Google 的应用引擎中的作用是什么 [英] What purpose does the default service serve in Google's app engine
本文介绍了默认服务在 Google 的应用引擎中的作用是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在将具有微服务架构的应用部署到 google 的应用引擎时,它需要我的一项服务作为默认服务.
为什么需要这样做,默认服务的行为与任何其他命名"服务有什么不同?
解决方案
以下是 default
服务的一些角色/原因(我很确定该列表并不详尽):>
- 如果没有任何路由规则匹配,则使用
dispatch.yaml
文件路由请求的回退目标 - cron 作业的后备目标(如果它们没有专门配置为针对特定服务)
- 有关应用级配置的初始部署,请参阅为什么我需要部署默认"服务?应用之前,我可以在 GCP 中部署多个服务吗?
实际上,与命名服务相比,我认为这些差异只是额外的功能(主要与基础设施相关),否则它们非常相似.
When deploying an app with a microservices architecture to google's app engine, it requires one of my services to be the default service.
Why is this required and does the default service behave any differently to any other 'named' service?
解决方案
Here would be some roles/reasons for the default
service (I'm fairly sure the list is not exhaustive):
- the fallback destination for routing a request using a
dispatch.yaml
file if none of the routing rules is matched - the fallback destination for cron jobs if they aren't specifically configured to target a specific service
- for initial deployment of app-level configs, see Why do I need to deploy a "default" app before I can deploy multiple services in GCP?
Practically I'd consider such differences just extra functionality (mostly infra-related) compared to the named services, otherwise they're very similar.
这篇关于默认服务在 Google 的应用引擎中的作用是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文