{"action":"created","issue":{"url":"https://api.github.com/repos/ericchiang/k8s/issues/24","repository_url":"https://api.github.com/repos/ericchiang/k8s","labels_url":"https://api.github.com/repos/ericchiang/k8s/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ericchiang/k8s/issues/24/comments","events_url":"https://api.github.com/repos/ericchiang/k8s/issues/24/events","html_url":"https://github.com/ericchiang/k8s/issues/24","id":206706200,"number":24,"title":"List from cache behavior","user":{"login":"ericchiang","id":2342749,"avatar_url":"https://avatars1.githubusercontent.com/u/2342749?v=4","gravatar_id":"","url":"https://api.github.com/users/ericchiang","html_url":"https://github.com/ericchiang","followers_url":"https://api.github.com/users/ericchiang/followers","following_url":"https://api.github.com/users/ericchiang/following{/other_user}","gists_url":"https://api.github.com/users/ericchiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericchiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericchiang/subscriptions","organizations_url":"https://api.github.com/users/ericchiang/orgs","repos_url":"https://api.github.com/users/ericchiang/repos","events_url":"https://api.github.com/users/ericchiang/events{/privacy}","received_events_url":"https://api.github.com/users/ericchiang/received_events","type":"User","site_admin":false},"labels":[{"id":489063993,"url":"https://api.github.com/repos/ericchiang/k8s/labels/kind/feature","name":"kind/feature","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-10T04:29:28Z","updated_at":"2018-03-19T16:25:22Z","closed_at":"2018-03-19T16:25:22Z","author_association":"OWNER","body":"List operations can set \"`resourceVersion=0` to allow the API server to prefer its local cache instead of guaranteeing the freshest results. Provide a convince for this and maybe even make it the default. Most apps don't care about having the absolute latest data.\r\n\r\nMaybe something like this?\r\n\r\n```\r\n// DisableCaching, when provided to a list call, ensures that the API server doesn't refer\r\n// to its internal cache of resources and queries for the freshest resources from its\r\n// backing storage.\r\nfunc DisableCaching() Option\r\n```\r\n\r\nNaming could probably be worked out. Maybe `DisableCache`, `NoCaching`, `SkipCache`, `LatestResults`, etc.\r\n\r\nPros:\r\n* Most apps don't care about having the absolute latest data.\r\n* Performance improvement.\r\n* Most apps should use this anyway.\r\n\r\nCons:\r\n* Extremely surprising if you write apps requiring the latest data.\r\n* Have to provide to every API call (maybe a client setting as well?)"},"comment":{"url":"https://api.github.com/repos/ericchiang/k8s/issues/comments/374273863","html_url":"https://github.com/ericchiang/k8s/issues/24#issuecomment-374273863","issue_url":"https://api.github.com/repos/ericchiang/k8s/issues/24","id":374273863,"user":{"login":"ericchiang","id":2342749,"avatar_url":"https://avatars1.githubusercontent.com/u/2342749?v=4","gravatar_id":"","url":"https://api.github.com/users/ericchiang","html_url":"https://github.com/ericchiang","followers_url":"https://api.github.com/users/ericchiang/followers","following_url":"https://api.github.com/users/ericchiang/following{/other_user}","gists_url":"https://api.github.com/users/ericchiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericchiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericchiang/subscriptions","organizations_url":"https://api.github.com/users/ericchiang/orgs","repos_url":"https://api.github.com/users/ericchiang/repos","events_url":"https://api.github.com/users/ericchiang/events{/privacy}","received_events_url":"https://api.github.com/users/ericchiang/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T16:25:22Z","updated_at":"2018-03-19T16:25:22Z","author_association":"OWNER","body":"Closing. I think an informers example would be better here."}}
{"actor":{"display_login":"ericchiang"}}