c# - WEBAPI2 performance of many vs single controller -



c# - WEBAPI2 performance of many vs single controller -

so, improve me create several requests single webapi2 controller or create same amount of requests many controllers. i.e single controller handling 10 requests perform worse 10 controllers handling 1 request each?

either way please provide explanation of why , how 1 improve other how request handling different between two.

exactly 0 difference.

unless explicitly alter default behaviour, new controller instance created each request. whether create 10 instances of controller or 10 instances of controller b makes no difference: 10 instances either way.

it shouldn't said if controller more expensive controller b have effect, obviously.

c# .net performance asp.net-web-api2

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -