Topic 1 Question 274
You manage a microservice-based ecommerce platform on Google Cloud that sends confirmation emails to a third-party email service provider using a Cloud Function. Your company just launched a marketing campaign, and some customers are reporting that they have not received order confirmation emails. You discover that the services triggering the Cloud Function are receiving HTTP 500 errors. You need to change the way emails are handled to minimize email loss. What should you do?
Increase the Cloud Function's timeout to nine minutes.
Configure the sender application to publish the outgoing emails in a message to a Pub/Sub topic. Update the Cloud Function configuration to consume the Pub/Sub queue.
Configure the sender application to write emails to Memorystore and then trigger the Cloud Function. When the function is triggered, it reads the email details from Memorystore and sends them to the email service.
Configure the sender application to retry the execution of the Cloud Function every one second if a request fails.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: B
This is a robust and scalable approach. By decoupling the email sending process using Pub/Sub, you introduce a queueing mechanism. This ensures that even if the Cloud Function encounters an issue, the email messages are not lost but remain in the queue. Additionally, Pub/Sub can handle high throughput and provides retry mechanisms.
👍 3plutonians1232023/12/02 B. the most effective solution would be B. - using Pub/Sub to queue email messages and having the Cloud Function process these messages is a robust, scalable, and reliable way to handle email sending in your ecommerce platform, especially during high load conditions.
👍 1vspringe2023/11/13- 正解だと思う選択肢: B
B. With pub sub you can scale the load of sending emails to the Cloud Function. Also can configure exponential backoff if errors arise in the third party service and ensure the email is delivered
👍 1diegodoal2023/11/15
シャッフルモード