{"action":"closed","issue":{"url":"https://api.github.com/repos/sjdirect/abot/issues/85","labels_url":"https://api.github.com/repos/sjdirect/abot/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/sjdirect/abot/issues/85/comments","events_url":"https://api.github.com/repos/sjdirect/abot/issues/85/events","html_url":"https://github.com/sjdirect/abot/issues/85","id":104467111,"number":85,"title":"About  Performances","user":{"login":"LeMoussel","id":1816573,"avatar_url":"https://avatars.githubusercontent.com/u/1816573?v=3","gravatar_id":"","url":"https://api.github.com/users/LeMoussel","html_url":"https://github.com/LeMoussel","followers_url":"https://api.github.com/users/LeMoussel/followers","following_url":"https://api.github.com/users/LeMoussel/following{/other_user}","gists_url":"https://api.github.com/users/LeMoussel/gists{/gist_id}","starred_url":"https://api.github.com/users/LeMoussel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeMoussel/subscriptions","organizations_url":"https://api.github.com/users/LeMoussel/orgs","repos_url":"https://api.github.com/users/LeMoussel/repos","events_url":"https://api.github.com/users/LeMoussel/events{/privacy}","received_events_url":"https://api.github.com/users/LeMoussel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T12:15:44Z","updated_at":"2015-09-21T18:08:08Z","closed_at":"2015-09-21T18:08:08Z","body":"If you start Abot with  a relatively high amount of threads, you get an performance impact and an huge memory footprint.\r\n\r\nTo optimize Abot to perform thousands of requests per second,  the easiest way is by using Task Parallel Library from the TPL and sync/await programming model (IAsync implementations)\r\nThis is in fact the only way to make the Tasks stuff work, starting 10.000. Tasks which using await GetResponseAsync and await GetRequestStreamAsync. \r\n\r\nMSDN Example : [How to: Wrap Event-Based Asynchronous Pattern (EAP) Patterns in a Task](msdn.microsoft.com/en-us/library/ee622454.aspx) \r\n\r\nWhat do you think ?\r\n\r\n"}}