Problem background: (Simplified, but same idea) A scalable web-service that adds two numbers and returns result. There is no state being saved. The client sends a HTTP POST where the 2 numbers to be added are part of the body. The Server adds the numbers and responds with the summation in the body of the HTTP response.
Question: I want to deploy the service on Azure. Should I create a web-role or a worker-role? Which would be more performant for the above stated problem?
I tried creating a prototype using worker-role and there are parts (like handling application/xml mime types in http-post) which seem to be difficult to do in a worker role. Things like the GlobalConfiguration classes are unavailable by default.