Dear Google Cloud Support,
I hope this message finds you well. I am currently using the Google Cloud Vision API and have a couple of questions regarding retries and billing
Thank you for your assistance. I look forward to your response.
Best regards,
Solved! Go to Solution.
Hi @takeichi,
Welcome to Google Cloud Community!
When using the Google Cloud Vision API with retry mechanisms via google.api_core.retry.Retry
, it is crucial to understand the implications on billing and how to effectively track retries.
For Billing and Retries:
Retry Costs: Each request to the Google Cloud Vision API, including any retries, is billed individually. As a result, if a request fails and triggers a retry, the retry will be charged as a separate request. Google Cloud charges for every processed request, whether it is the initial attempt or a retry. For additional details, you can refer to this documentation.
For Tracking Requests:
Steps to Track Requests with Retries:
1. Implement Logging: Add logging to your application to track every API request, including retries. This should involve:
2. Use Google Cloud Monitoring:
3. Review Billing Reports: Regularly check your Google Cloud Billing Reports to make sure charges match your expectations. Detailed reports help analyze usage patterns and understand the cost of retries. For help with billing reports, see the Billing Reports Overview.
I hope the above information is helpful.
Hi @takeichi,
Welcome to Google Cloud Community!
When using the Google Cloud Vision API with retry mechanisms via google.api_core.retry.Retry
, it is crucial to understand the implications on billing and how to effectively track retries.
For Billing and Retries:
Retry Costs: Each request to the Google Cloud Vision API, including any retries, is billed individually. As a result, if a request fails and triggers a retry, the retry will be charged as a separate request. Google Cloud charges for every processed request, whether it is the initial attempt or a retry. For additional details, you can refer to this documentation.
For Tracking Requests:
Steps to Track Requests with Retries:
1. Implement Logging: Add logging to your application to track every API request, including retries. This should involve:
2. Use Google Cloud Monitoring:
3. Review Billing Reports: Regularly check your Google Cloud Billing Reports to make sure charges match your expectations. Detailed reports help analyze usage patterns and understand the cost of retries. For help with billing reports, see the Billing Reports Overview.
I hope the above information is helpful.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |