I have a wcf rest api project with a lot of service contracts (almost 20) and each service contract has X method (from three to even twenty methods).
I host it inside IIS7 and register all the routes threw the Global.asax (not using .svc files).
Each time i recycle the IIS (after each installtion of new code) , the first request to each route is very slow (from 30 seconds until 2 minutes in some of the routes).
Now i want to solve this problem and rebuild the routes and their methods amount. I tried looking for the ideal amount of operation contract in each service contract and ideal amount of service contracts but could not find an appropriate answer.
Is there an ideal solution to solve my problem?