Title: Discussion: discovery doc caching · Issue #110 · googleapis/google-api-python-client · GitHub
Open Graph Title: Discussion: discovery doc caching · Issue #110 · googleapis/google-api-python-client
X Title: Discussion: discovery doc caching · Issue #110 · googleapis/google-api-python-client
Description: discovery.build() is handy, but afaik, it should be avoided in any production systems, especially if the API is considered stable and you should cache the discovery document and re-use it. When Cloud Pub/Sub released the API version v1, ...
Open Graph Description: discovery.build() is handy, but afaik, it should be avoided in any production systems, especially if the API is considered stable and you should cache the discovery document and re-use it. When Clo...
X Description: discovery.build() is handy, but afaik, it should be avoided in any production systems, especially if the API is considered stable and you should cache the discovery document and re-use it. When Clo...
Opengraph URL: https://github.com/googleapis/google-api-python-client/issues/110
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discussion: discovery doc caching","articleBody":"discovery.build() is handy, but afaik, it should be avoided in any production systems, especially if the API is considered stable and you should cache the discovery document and re-use it.\n\nWhen Cloud Pub/Sub released the API version v1, I started to cache ([appengine](https://github.com/GoogleCloudPlatform/cloud-pubsub-samples-python/blob/5ea5c39f74e7644feeff2d5e81df5b9549ce3c6b/appengine-push/discovery_doc.py)/[other](https://github.com/GoogleCloudPlatform/cloud-pubsub-samples-python/blob/5ea5c39f74e7644feeff2d5e81df5b9549ce3c6b/cmdline-pull/discovery_doc.py)) the discovery document in our samples.\n\nIt is great if there is a library, or even discovery.build() takes care of all the caching stuff under the cover, so I will start working on either of 1) create an independent library that does caching, or 2) create a PR to google-api-python-client.\n\nBefore I proceed, I'd like to ask: Which do you guys prefer?\n","author":{"url":"https://github.com/tmatsuo","@type":"Person","name":"tmatsuo"},"datePublished":"2015-06-29T17:48:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/110/google-api-python-client/issues/110"}
| 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:d99b345f-f267-5d92-9002-d3f3ebe197fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E56C:1C8D6F:5E725E:816995:6A4DCE49 |
| html-safe-nonce | 3ddb25ccbbd4917b1120ed637d19a908826a9f6aa44db1538ab496ade7c888d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTZDOjFDOEQ2Rjo1RTcyNUU6ODE2OTk1OjZBNERDRTQ5IiwidmlzaXRvcl9pZCI6IjY2MzQ0NDEwNTE5NzYwOTMyNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4ca39171fbb63d4d277f14b8e6a882074d33dd28a2ea01f57cd94b57b10bd9f7 |
| hovercard-subject-tag | issue:91866110 |
| 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/googleapis/google-api-python-client/110/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75944991d72f24df781b643b5bfc4c452c026e537e6c3dbbb5d5f76672f081a0/googleapis/google-api-python-client/issues/110 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75944991d72f24df781b643b5bfc4c452c026e537e6c3dbbb5d5f76672f081a0/googleapis/google-api-python-client/issues/110 |
| og:image:alt | discovery.build() is handy, but afaik, it should be avoided in any production systems, especially if the API is considered stable and you should cache the discovery document and re-use it. When Clo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmatsuo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 15749269 |
| octolytics-dimension-repository_nwo | googleapis/google-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15749269 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-api-python-client |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width