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 9253819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:18:52+00:00 2026-06-18T11:18:52+00:00

I was thinking , The WebApi along with routing mechanism works in such way

  • 0

I was thinking ,

The WebApi along with routing mechanism works in such way that it reads the http verb ( GET POST etc…) and then searches for matched method names / parameters :

For example :

  • If it’s GET and the URI is api/Customers/5:

    • method should start with Get

    • if it has ID so search a method which accepts int as parameter.

    • etc. (there are more rules).

I mostly believe they did it using reflection.

Question :

Isn’t it a performance hit , for every URI request – to search all this data just to attach a method ?

Where I could easily send a very short string from a client which will imply on the method on the server side ?

Why not doing it the simple way ? Ok cause we want to use http verbs as meaning. OK. but so much operations just to execute a method

example #1

get api/Customers/5

could be

a.ashx?m=gc&id=5 (method=GetCustomer & id=5)

example #2

put api/Customers/5?v=123

could be

a.ashx?m=uc&id=5?v=123' (method=UpdateCustomer & id=5 & value=123)

mine is even shorter.

Dont get me wrong. I believe this api was done by very smart people who knew what they talk about.

Just want o know what am I missing.

  • 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-18T11:18:54+00:00Added an answer on June 18, 2026 at 11:18 am

    Web api has a lot of options that you don’t have with HTTP Handler if you don’t code it
    Full list: http://www.asp.net/whitepapers/mvc4-release-notes#_Toc317096197

    • OData support (via Queryable attribute)
    • Content Negotiation
    • Filters
    • Model binding and validation
    • Ability to self host outside of IIS
    • Link generation to related resources that incorporates routing rules
    • Full support for routes/routing
    • Ability to create custom help and test pages using IApiExplorer

    Performance comparison HttpHandler vs WebAPI: http://www.west-wind.com/weblog/posts/2012/Sep/04/ASPNET-Frameworks-and-Raw-Throughput-Performance

    As always, you need to choose the the technology that suits you best, if you want performance go with Http Handler. If you want flexibility and rest go with Web API. You might want rest if you expose web services that other will consume

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

Sidebar

Related Questions

Just thinking about the best way to build an Order form that would (from
Thinking about avoiding code replication, I got a question that catches me every time
Thinking that the answer to this is pretty obvious but here it goes: When
Im thinking this is correct, but probably WAY off. I have a string formatted
Possibly i am overlooking an obvious solution or thinking the wrong way... I have
Thinking about if we modify the definition of Hamiltonian path as we need to
Im thinking about to use a DB for my logs instead of a normal
Im thinking about building an application on our website to track order places through
Been thinking about this for hours now. Im building a simple slideshow application, where
Im thinking about learn to develop app for iOS. I had a lot of

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.