Title: Choosing Whether to Enable Retries in Firebase App Options · Issue #1075 · firebase/firebase-admin-java · GitHub
Open Graph Title: Choosing Whether to Enable Retries in Firebase App Options · Issue #1075 · firebase/firebase-admin-java
X Title: Choosing Whether to Enable Retries in Firebase App Options · Issue #1075 · firebase/firebase-admin-java
Description: Hello, I have learned that FCM automatically retries when a 503 response is received. However, our service already handles retries for undelivered messages through scheduling, so we do not want to use the default retry strategy. public s...
Open Graph Description: Hello, I have learned that FCM automatically retries when a 503 response is received. However, our service already handles retries for undelivered messages through scheduling, so we do not want to ...
X Description: Hello, I have learned that FCM automatically retries when a 503 response is received. However, our service already handles retries for undelivered messages through scheduling, so we do not want to ...
Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/1075
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Choosing Whether to Enable Retries in Firebase App Options","articleBody":"Hello,\nI have learned that FCM automatically retries when a 503 response is received.\nHowever, our service already handles retries for undelivered messages through scheduling, so we do not want to use the default retry strategy.\n```\npublic static HttpRequestFactory newAuthorizedRequestFactory(\n\tFirebaseApp app, @Nullable RetryConfig retryConfig) {\n\tHttpTransport transport = app.getOptions().getHttpTransport();\n\treturn transport.createRequestFactory(new FirebaseRequestInitializer(app, retryConfig));\n}\n```\nTo disable this behavior, I attempted to use a method provided in the ApiClientUtils class.\nHowever, after debugging the initialization process, I found that it is not possible to set a custom RetryConfig value.\n\nI assume there is a valid reason for restricting the redefinition of RetryConfig.\nFor example, it may be to prevent retries for responses other than 5xx errors or to avoid excessive retry requests within a short period.\n\nWhat I would like is the ability to **enable or disable the retry feature as needed.**\nI will proceed with creating a PR for this.","author":{"url":"https://github.com/ksiisk99","@type":"Person","name":"ksiisk99"},"datePublished":"2025-02-12T16:55:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1075/firebase-admin-java/issues/1075"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a9681f9-bc81-dd44-e597-5abf50979700 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C06:12779A:16DBFFA:1DB5ED5:698FD88B |
| html-safe-nonce | c837d8fda47ef65b2625acf088d679a29c8f9515fb888f9c42bc4e421b20c639 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzA2OjEyNzc5QToxNkRCRkZBOjFEQjVFRDU6Njk4RkQ4OEIiLCJ2aXNpdG9yX2lkIjoiNjQzODA2MjQ5Mjk3NjMxMzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 22c7f5411b774abd8b5b5f8ec124577e950695a13702d7830486f47b9ba7c182 |
| hovercard-subject-tag | issue:2848845975 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-java/1075/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df5a6710d19a8c9c4de21fd81cee729511302c7494af080860f920599247ef0c/firebase/firebase-admin-java/issues/1075 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df5a6710d19a8c9c4de21fd81cee729511302c7494af080860f920599247ef0c/firebase/firebase-admin-java/issues/1075 |
| og:image:alt | Hello, I have learned that FCM automatically retries when a 503 response is received. However, our service already handles retries for undelivered messages through scheduling, so we do not want to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ksiisk99 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-java git https://github.com/firebase/firebase-admin-java.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979119 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979119 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d320682233dfd4d28c0b30554a564c2fcd229032 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width