Title: Web Cmdlet Socket Exhaustion Concern · Issue #9977 · PowerShell/PowerShell · GitHub
Open Graph Title: Web Cmdlet Socket Exhaustion Concern · Issue #9977 · PowerShell/PowerShell
X Title: Web Cmdlet Socket Exhaustion Concern · Issue #9977 · PowerShell/PowerShell
Description: This issue was originally opened in the https://github.com/Azure/azure-functions-powershell-worker repo by @markekraus. One thing we do not handle well in the web cmdlets in PS Core is the singleton nature of HttpClient. HttpClient is in...
Open Graph Description: This issue was originally opened in the https://github.com/Azure/azure-functions-powershell-worker repo by @markekraus. One thing we do not handle well in the web cmdlets in PS Core is the singleto...
X Description: This issue was originally opened in the https://github.com/Azure/azure-functions-powershell-worker repo by @markekraus. One thing we do not handle well in the web cmdlets in PS Core is the singleto...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9977
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Web Cmdlet Socket Exhaustion Concern","articleBody":"This issue was originally opened in the https://github.com/Azure/azure-functions-powershell-worker repo by @markekraus. \r\n\r\nOne thing we do not handle well in the web cmdlets in PS Core is the singleton nature of HttpClient. HttpClient is intended to be instantiated once and then reused. In PS Core we instantiate a new HttpClient on every call to IWR/IRM. This is somewhat OK for a shell and scripting language, but could be problematic for Functions. A common pattern is to create a azure Function to combine data from multiple endpoints as a single data set. In a high volume environment, the repeated calls to web cmdlets could result in socket exhaustion. [More Info](https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client#create-and-initialize-httpclient)\r\n\r\nFor conversation details please see https://github.com/Azure/azure-functions-powershell-worker/issues/174","author":{"url":"https://github.com/Francisco-Gamino","@type":"Person","name":"Francisco-Gamino"},"datePublished":"2019-06-21T22:57:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/9977/PowerShell/issues/9977"}
| 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:c1b9a331-5fc7-dff0-4df7-4f8e7775144d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A90:19688F:F22233:15F5960:6A54B210 |
| html-safe-nonce | addcc2f0d48168a4e0a85ba7399babd02f89236a8cfc05a626a156d7d163bac9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTkwOjE5Njg4RjpGMjIyMzM6MTVGNTk2MDo2QTU0QjIxMCIsInZpc2l0b3JfaWQiOiI1MjI0Njc0MTM0MTQ4MzUzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a18cb916571cd45053fb3a79d3b695dca76926c9a9346595c755f388be709cf4 |
| hovercard-subject-tag | issue:459399249 |
| 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/PowerShell/PowerShell/9977/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac538ee510a5664639b6f1a6436fb86a8b52efd5dcc0c3342ee398c7071d2144/PowerShell/PowerShell/issues/9977 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac538ee510a5664639b6f1a6436fb86a8b52efd5dcc0c3342ee398c7071d2144/PowerShell/PowerShell/issues/9977 |
| og:image:alt | This issue was originally opened in the https://github.com/Azure/azure-functions-powershell-worker repo by @markekraus. One thing we do not handle well in the web cmdlets in PS Core is the singleto... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Francisco-Gamino |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 5d343e1152573ef294b28f54e4a14fb5fdb3a5a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width