Title: Firebase 9.4.2 Performance · Issue #1061 · firebase/firebase-admin-java · GitHub
Open Graph Title: Firebase 9.4.2 Performance · Issue #1061 · firebase/firebase-admin-java
X Title: Firebase 9.4.2 Performance · Issue #1061 · firebase/firebase-admin-java
Description: Hi i had my own implementation of 9.3.0 with a costum http2 client using public static HttpAsyncClientBuilder defaultHttpAsyncClientBuilder() { PoolingAsyncClientConnectionManager connectionManager = new PoolingAsyncClientConnectionManag...
Open Graph Description: Hi i had my own implementation of 9.3.0 with a costum http2 client using public static HttpAsyncClientBuilder defaultHttpAsyncClientBuilder() { PoolingAsyncClientConnectionManager connectionManager...
X Description: Hi i had my own implementation of 9.3.0 with a costum http2 client using public static HttpAsyncClientBuilder defaultHttpAsyncClientBuilder() { PoolingAsyncClientConnectionManager connectionManager...
Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/1061
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Firebase 9.4.2 Performance","articleBody":"Hi i had my own implementation of 9.3.0 with a costum http2 client using\n\n public static HttpAsyncClientBuilder defaultHttpAsyncClientBuilder() {\n PoolingAsyncClientConnectionManager connectionManager = new PoolingAsyncClientConnectionManager();\n connectionManager.setMaxTotal(200);\n connectionManager.setDefaultMaxPerRoute(100);\n connectionManager.setDefaultConnectionConfig(ConnectionConfig.custom().setTimeToLive(-1L, TimeUnit.MILLISECONDS).build());\n connectionManager.setDefaultTlsConfig(TlsConfig.custom().setVersionPolicy(HttpVersionPolicy.NEGOTIATE).build());\n return HttpAsyncClientBuilder.create().setH2Config(H2Config.custom().setMaxConcurrentStreams(100).build()).\n setHttp1Config(Http1Config.DEFAULT).setConnectionManager(connectionManager).\n setRoutePlanner(new SystemDefaultRoutePlanner(ProxySelector.getDefault())).disableRedirectHandling().disableAutomaticRetries();//\n }\n\nit reached up to 1.7 qps. to upper limit of what was possible, but there were rare server crashes, due too.. idk.\n\nNow im using the latest version and no matter what i do, ill get like 180 qps max?\n\nThe default implementation of h2config uses 250 concurrent streams (shouldnt it be 100?). And the Reactor class uses cpu count IO Threads. So kinda 10.\n\nIm now using this configuration, before the default from the wiki page.\n\ndef h2Config = H2Config.custom()\n .setMaxConcurrentStreams(100)\n .setInitialWindowSize(1048576 * 2)\n // .setPushEnabled(false)\n .build()\n\n def ioReactorConfig = IOReactorConfig.custom()\n .setIoThreadCount(Runtime.getRuntime().availableProcessors() * 2)\n .setSoTimeout(Timeout.ofMilliseconds(60000))\n .build()\n\n def client = H2AsyncClientBuilder.create()\n .setH2Config(h2Config)\n .setIOReactorConfig(ioReactorConfig)\n .disableRedirectHandling()\n .disableAutomaticRetries()\n .build()\n\n options = FirebaseOptions.builder()\n .setCredentials(GoogleCredentials.fromStream(resource))\n .setHttpTransport(new ApacheHttp2Transport(client))\n .build()\n\nSo the latest firebase version sends at 1/10 of the original speed? ","author":{"url":"https://github.com/SmikeSix2","@type":"Person","name":"SmikeSix2"},"datePublished":"2025-01-21T13:02:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1061/firebase-admin-java/issues/1061"}
| 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:dcde089f-4144-5d61-a51e-412b546f3988 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFD2:123F6E:86481:AFD09:698E9AEB |
| html-safe-nonce | 30ce8ca75944413b82aca38c151879f93c31e0e284133fb2361ed2fe18c225af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkQyOjEyM0Y2RTo4NjQ4MTpBRkQwOTo2OThFOUFFQiIsInZpc2l0b3JfaWQiOiI1NDE3NDk1NTkwODYxNzA4MDExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d9ddd9794830d3239fc2e4bacd6d5e34ea55279d12e6ef2860460569d20dd1dd |
| hovercard-subject-tag | issue:2801796488 |
| 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/1061/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3181cb6d8e0f378055d0c0f86b3426bdfa1f6836109de538d70468c72d488738/firebase/firebase-admin-java/issues/1061 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3181cb6d8e0f378055d0c0f86b3426bdfa1f6836109de538d70468c72d488738/firebase/firebase-admin-java/issues/1061 |
| og:image:alt | Hi i had my own implementation of 9.3.0 with a costum http2 client using public static HttpAsyncClientBuilder defaultHttpAsyncClientBuilder() { PoolingAsyncClientConnectionManager connectionManager... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SmikeSix2 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width