Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8876977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:21:06+00:00 2026-06-14T19:21:06+00:00

ASP.NET WebAPI’s can either hosted within IIS (as a web role) or be self

  • 0

ASP.NET WebAPI’s can either hosted within IIS (as a web role) or be self hosted (as a worker role)

var server = new HttpSelfHostServer(config);
server.OpenAsync().Wait();

The above reminded me of Node.JS. Anyway, I’m trying to list out all the technical tradeoffs between these two approaches. I’m not looking for an opinion on what tradeoffs you prefer – just what those tradeoffs are from a technical perspective. Right now I’m seeing about 8% faster response times per API call in self-hosted mode on our real-world API calls (=Azure SQL + heavy duty number crunching behind the API call). However, I’m concerned that jettisoning IIS will come back to bite us later in the future.

So, what are some major tradeoffs or features lost when avoiding IIS when going the WebAPI self-hosting route?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:21:07+00:00Added an answer on June 14, 2026 at 7:21 pm
    • You lose all of the features of IIS (logging, application pool scaling, throttling/config of your site)….you have to build every single feature that you want yourself
    • HttpContext? You lose that since ASP.NET provides that for you. So, I could see that making things like authentication much harder
    • WebDeploy? You would lose that
    • IIS has some nice specific features in IIS 8 about handling requests and warming up the service

    It depends on your application really. You would have to re-write each of those features you need. Node.js provides modules that do that stuff (Express) that the Nginx sever does not have…other than the (event loop async architecture) that is why it is faster.

    I know this is not part of your question, but you mentioned a 8% perf gain…that gain is because you don’t have the IIS pipeline involved. As you write your own code to mimic IIS functionality you lose, you will ultimitely lose out on that performance

    Have you tried Windows 2008 R2/IIS 8? That includes a “free” performance gain over IIS 7.x:
    http://blog.bitdiff.com/2012/06/performance-comparison-iis-75-and-iis-8.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In IIS, I can ignore, allow and require client certificates. In ASP.NET WebAPI (version
I have a Asp.net WebAPI service that is hosted on AppHarbor which throws 404
Is there a way to accept any hostheader with ASP.Net WebApi eg: var config
I have a layered web application that I built with ASP.NET MVC 4, WebAPI
I'm working on a web service using ASP.NET MVC's new WebAPI that will serve
Using the new ASP.NET Web API beta. I can not seem to get the
I use ASP.NET Web API and use Authentication by reference to http://stevescodingblog.co.uk/basic-authentication-with-asp-net-webapi/ It works
Using Asp.net WebApi (RC), how can I catch errors that are not caught by
I'm using the ASP.NET WebApi. I'm creating a PUT method within one of my
I have been looking at unit testing a ASP.Net WebAPI project. I can obviously

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.