Creating a WCF Restful service, concurrency issues

Posted by pmillio on Stack Overflow See other posts from Stack Overflow or by pmillio
Published on 2011-01-15T09:39:24Z Indexed on 2011/01/15 9:53 UTC
Read the original article Hit count: 165

Filed under:
|
|

Hi i am in the process of creating a restful service with WCF, the service is likely to be consumed by at least 500 people at any given time. What settings would i need to set in order to deal with this. Please give me any points and tips, thanks.

Here is a sample of what i have so far;

[ServiceBehavior(IncludeExceptionDetailInFaults = true, InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)] 

And this is an example of a method being called;

    public UsersAPI getUserInfo(string UserID)
    {
        UsersAPI users = new UsersAPI(int.Parse(UserID));

        return users;
    }



    [OperationContract]
    [WebGet(BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, UriTemplate = "User/{UserID}")]
    [WebHelp(Comment = "This returns a users info.")]
    UsersAPI getUserInfo(string UserID);

© Stack Overflow or respective owner

Related posts about wcf

Related posts about web-services