Topic 1 Question 251
You are working on a new application that is deployed on Cloud Run and uses Cloud Functions. Each time new features are added, new Cloud Functions and Cloud Run services are deployed. You use ENV variables to keep track of the services and enable interservice communication, but the maintenance of the ENV variables has become difficult. You want to implement dynamic discovery in a scalable way. What should you do?
Configure your microservices to use the Cloud Run Admin and Cloud Functions APIs to query for deployed Cloud Run services and Cloud Functions in the Google Cloud project.
Create a Service Directory namespace. Use API calls to register the services during deployment, and query during runtime.
Rename the Cloud Functions and Cloud Run services endpoint is using a well-documented naming convention.
Deploy Hashicorp Consul on a single Compute Engine instance. Register the services with Consul during deployment, and query during runtime.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: B👍 2TNT872023/01/31
- 正解だと思う選択肢: B
Service Directory provides a scalable way to manage the registration and discovery of services. By creating a namespace, you can use API calls to register your Cloud Run and Cloud Functions services, and query them during runtime. This allows for dynamic discovery and eliminates the need for manually updating environment variables. Service Directory also provides features such as service health checks and metadata, which can be used to further improve the reliability and scalability of your application.
👍 2mrvergara2023/02/04 - 正解だと思う選択肢: B
service directory for egistration and discovery of services
👍 1Pime132023/02/26
シャッフルモード