Web API One Point Connection Approach.( One web -api object will created for severing multiple Business needs)

Certified Lead Developer

Hi All,

I could would like to your opinion on the two different approach which we drafted. Need to understand the pros and cons 

Approach1:

 

We are creating one webapi and based on the path parameter it will be routed to respective Handler(expression rule)and the handler will respond back 

Question:

1. Creating One web-API /per http method ,will it create high load to Web-api which will in turn make 503 exception(timeout) on prod?

Approach 2:

Creating a Web-API /per Package and which in turn as respective handler (expression rule ) for the response

Question:

1)desired approach to solve the needful?

2)Pros and cons on Approach 1 over the Approach 2?

Thanks in advance!

  Discussion posts and replies are publicly visible