{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/docs/pulls/comments/231890969","pull_request_review_id":172960503,"id":231890969,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTg5MDk2OQ==","diff_hunk":"@@ -61,15 +63,17 @@ services.AddHttpClient<IBasketService, BasketService>();\n services.AddHttpClient<IOrderingService, OrderingService>();\n ```\n \n-Just by adding your typed client classes with AddHttpClient(), whenever you use the `HttpClient` object that will be injected to your class through its constructor, that `HttpClient` object will be using all the configuration and policies provided. In the next sections, you will see those policies like Polly’s retries or circuit-breakers.\n+Registering the client services as shown in the code above, makes the `DefaultClientFactory` create an `HttpClient` configured specifically for each service, as we'll see in just a moment.\n+\n+Just by registering your client classes with AddHttpClient(), whenever you use the `HttpClient` object injected to your class through its constructor, that `HttpClient` object will be using all the configuration and policies provided upon registration. In the next sections, you will see those policies like Polly’s retries or circuit-breakers.\n \n ### HttpClient lifetimes\n \n-Each time you get an `HttpClient` object from IHttpClientFactory, a new instance of an `HttpClient` is returned. There will be an HttpMessageHandler** per named of typed client. `IHttpClientFactory` will pool the HttpMessageHandler instances created by the factory to reduce resource consumption. An HttpMessageHandler instance may be reused from the pool when creating a new `HttpClient` instance if its lifetime hasn't expired.\n+Each time you get an `HttpClient` object from IHttpClientFactory, a new instance of an `HttpClient` is returned. There will be an `HttpMessageHandler` per named of typed client. `IHttpClientFactory` will pool the `HttpMessageHandler` instances created by the factory to reduce resource consumption. An `HttpMessageHandler` instance may be reused from the pool when creating a new `HttpClient` instance if its lifetime hasn't expired.","path":"docs/standard/microservices-architecture/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests.md","position":70,"original_position":44,"commit_id":"5a11334bdeccd844e2b577061e94cca976cba812","original_commit_id":"72cab5b9383817325a6d2f1365e89f133562ccd1","user":{"login":"mvelosop","id":7357806,"node_id":"MDQ6VXNlcjczNTc4MDY=","avatar_url":"https://avatars2.githubusercontent.com/u/7357806?v=4","gravatar_id":"","url":"https://api.github.com/users/mvelosop","html_url":"https://github.com/mvelosop","followers_url":"https://api.github.com/users/mvelosop/followers","following_url":"https://api.github.com/users/mvelosop/following{/other_user}","gists_url":"https://api.github.com/users/mvelosop/gists{/gist_id}","starred_url":"https://api.github.com/users/mvelosop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvelosop/subscriptions","organizations_url":"https://api.github.com/users/mvelosop/orgs","repos_url":"https://api.github.com/users/mvelosop/repos","events_url":"https://api.github.com/users/mvelosop/events{/privacy}","received_events_url":"https://api.github.com/users/mvelosop/received_events","type":"User","site_admin":false},"body":"Rewrote and simplified the related paragraphs.","created_at":"2018-11-08T13:43:07Z","updated_at":"2018-11-08T13:43:07Z","html_url":"https://github.com/dotnet/docs/pull/8506#discussion_r231890969","pull_request_url":"https://api.github.com/repos/dotnet/docs/pulls/8506","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dotnet/docs/pulls/comments/231890969"},"html":{"href":"https://github.com/dotnet/docs/pull/8506#discussion_r231890969"},"pull_request":{"href":"https://api.github.com/repos/dotnet/docs/pulls/8506"}},"in_reply_to_id":227271507},"pull_request":{"url":"https://api.github.com/repos/dotnet/docs/pulls/8506","id":224356138,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MzU2MTM4","html_url":"https://github.com/dotnet/docs/pull/8506","diff_url":"https://github.com/dotnet/docs/pull/8506.diff","patch_url":"https://github.com/dotnet/docs/pull/8506.patch","issue_url":"https://api.github.com/repos/dotnet/docs/issues/8506","number":8506,"state":"open","locked":false,"title":"Cross updating with Microservices eBook v2.1.02 - Chapter 8 (replacing PR #8429)","user":{"login":"mvelosop","id":7357806,"node_id":"MDQ6VXNlcjczNTc4MDY=","avatar_url":"https://avatars2.githubusercontent.com/u/7357806?v=4","gravatar_id":"","url":"https://api.github.com/users/mvelosop","html_url":"https://github.com/mvelosop","followers_url":"https://api.github.com/users/mvelosop/followers","following_url":"https://api.github.com/users/mvelosop/following{/other_user}","gists_url":"https://api.github.com/users/mvelosop/gists{/gist_id}","starred_url":"https://api.github.com/users/mvelosop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvelosop/subscriptions","organizations_url":"https://api.github.com/users/mvelosop/orgs","repos_url":"https://api.github.com/users/mvelosop/repos","events_url":"https://api.github.com/users/mvelosop/events{/privacy}","received_events_url":"https://api.github.com/users/mvelosop/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nSynchronized Microservices e-book <--> docs.microsoft.com (Chapter 8)\r\n\r\n@BillWagner This is replacement for PR #8429, because of the error in procedure and merge conflicts that would've required a rebase.\r\n\r\nI preferred to create this new PR and cherry picking the previous commits, solving the merge conflicts on the spot.\r\n\r\nFixes #5395, fixes #6311 \r\n\r\nChanges have been grouped and the type of changes is included in the commit description.\r\n\r\n","created_at":"2018-10-19T17:20:44Z","updated_at":"2018-11-08T13:43:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca5e8a6024a99c8e44e5086ff923761da6bfd958","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/docs/pulls/8506/commits","review_comments_url":"https://api.github.com/repos/dotnet/docs/pulls/8506/comments","review_comment_url":"https://api.github.com/repos/dotnet/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/docs/issues/8506/comments","statuses_url":"https://api.github.com/repos/dotnet/docs/statuses/5a11334bdeccd844e2b577061e94cca976cba812","head":{"label":"dotnet-architecture:microservices/v2.1.02-08-bis-implement-resilient-applications","ref":"microservices/v2.1.02-08-bis-implement-resilient-applications","sha":"5a11334bdeccd844e2b577061e94cca976cba812","user":{"login":"dotnet-architecture","id":27453006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NDUzMDA2","avatar_url":"https://avatars2.githubusercontent.com/u/27453006?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet-architecture","html_url":"https://github.com/dotnet-architecture","followers_url":"https://api.github.com/users/dotnet-architecture/followers","following_url":"https://api.github.com/users/dotnet-architecture/following{/other_user}","gists_url":"https://api.github.com/users/dotnet-architecture/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet-architecture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet-architecture/subscriptions","organizations_url":"https://api.github.com/users/dotnet-architecture/orgs","repos_url":"https://api.github.com/users/dotnet-architecture/repos","events_url":"https://api.github.com/users/dotnet-architecture/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet-architecture/received_events","type":"Organization","site_admin":false},"repo":{"id":131441034,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE0NDEwMzQ=","name":"docs","full_name":"dotnet-architecture/docs","private":false,"owner":{"login":"dotnet-architecture","id":27453006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NDUzMDA2","avatar_url":"https://avatars2.githubusercontent.com/u/27453006?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet-architecture","html_url":"https://github.com/dotnet-architecture","followers_url":"https://api.github.com/users/dotnet-architecture/followers","following_url":"https://api.github.com/users/dotnet-architecture/following{/other_user}","gists_url":"https://api.github.com/users/dotnet-architecture/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet-architecture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet-architecture/subscriptions","organizations_url":"https://api.github.com/users/dotnet-architecture/orgs","repos_url":"https://api.github.com/users/dotnet-architecture/repos","events_url":"https://api.github.com/users/dotnet-architecture/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet-architecture/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dotnet-architecture/docs","description":"This repository contains .NET Documentation.","fork":true,"url":"https://api.github.com/repos/dotnet-architecture/docs","forks_url":"https://api.github.com/repos/dotnet-architecture/docs/forks","keys_url":"https://api.github.com/repos/dotnet-architecture/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet-architecture/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet-architecture/docs/teams","hooks_url":"https://api.github.com/repos/dotnet-architecture/docs/hooks","issue_events_url":"https://api.github.com/repos/dotnet-architecture/docs/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet-architecture/docs/events","assignees_url":"https://api.github.com/repos/dotnet-architecture/docs/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet-architecture/docs/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet-architecture/docs/tags","blobs_url":"https://api.github.com/repos/dotnet-architecture/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet-architecture/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet-architecture/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet-architecture/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet-architecture/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet-architecture/docs/languages","stargazers_url":"https://api.github.com/repos/dotnet-architecture/docs/stargazers","contributors_url":"https://api.github.com/repos/dotnet-architecture/docs/contributors","subscribers_url":"https://api.github.com/repos/dotnet-architecture/docs/subscribers","subscription_url":"https://api.github.com/repos/dotnet-architecture/docs/subscription","commits_url":"https://api.github.com/repos/dotnet-architecture/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet-architecture/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet-architecture/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet-architecture/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet-architecture/docs/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet-architecture/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet-architecture/docs/merges","archive_url":"https://api.github.com/repos/dotnet-architecture/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet-architecture/docs/downloads","issues_url":"https://api.github.com/repos/dotnet-architecture/docs/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet-architecture/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet-architecture/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet-architecture/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet-architecture/docs/labels{/name}","releases_url":"https://api.github.com/repos/dotnet-architecture/docs/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet-architecture/docs/deployments","created_at":"2018-04-28T20:13:30Z","updated_at":"2018-11-06T19:52:25Z","pushed_at":"2018-11-08T10:55:07Z","git_url":"git://github.com/dotnet-architecture/docs.git","ssh_url":"git@github.com:dotnet-architecture/docs.git","clone_url":"https://github.com/dotnet-architecture/docs.git","svn_url":"https://github.com/dotnet-architecture/docs","homepage":"https://docs.microsoft.com/dotnet","size":549973,"stargazers_count":6,"watchers_count":6,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":5,"open_issues":0,"watchers":6,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"9e872784530bf25cc1a40d2504573eb0b1b93b2d","user":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35890081,"node_id":"MDEwOlJlcG9zaXRvcnkzNTg5MDA4MQ==","name":"docs","full_name":"dotnet/docs","private":false,"owner":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dotnet/docs","description":"This repository contains .NET Documentation.","fork":false,"url":"https://api.github.com/repos/dotnet/docs","forks_url":"https://api.github.com/repos/dotnet/docs/forks","keys_url":"https://api.github.com/repos/dotnet/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docs/teams","hooks_url":"https://api.github.com/repos/dotnet/docs/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docs/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docs/events","assignees_url":"https://api.github.com/repos/dotnet/docs/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docs/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docs/tags","blobs_url":"https://api.github.com/repos/dotnet/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docs/languages","stargazers_url":"https://api.github.com/repos/dotnet/docs/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docs/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docs/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docs/subscription","commits_url":"https://api.github.com/repos/dotnet/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docs/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docs/merges","archive_url":"https://api.github.com/repos/dotnet/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docs/downloads","issues_url":"https://api.github.com/repos/dotnet/docs/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docs/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docs/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docs/deployments","created_at":"2015-05-19T15:13:32Z","updated_at":"2018-11-08T13:22:51Z","pushed_at":"2018-11-08T10:55:11Z","git_url":"git://github.com/dotnet/docs.git","ssh_url":"git@github.com:dotnet/docs.git","clone_url":"https://github.com/dotnet/docs.git","svn_url":"https://github.com/dotnet/docs","homepage":"https://docs.microsoft.com/dotnet","size":510957,"stargazers_count":1425,"watchers_count":1425,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2909,"mirror_url":null,"archived":false,"open_issues_count":1287,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2909,"open_issues":1287,"watchers":1425,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/docs/pulls/8506"},"html":{"href":"https://github.com/dotnet/docs/pull/8506"},"issue":{"href":"https://api.github.com/repos/dotnet/docs/issues/8506"},"comments":{"href":"https://api.github.com/repos/dotnet/docs/issues/8506/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/docs/pulls/8506/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/docs/pulls/8506/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/docs/statuses/5a11334bdeccd844e2b577061e94cca976cba812"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mvelosop"}}