Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How well will WCF scale to a large number of client users?

Does anyone have any experience with how well web services build with Microsoft's WCF will scale to a large number of users?

The level I'm thinking of is in the region of 1000+ client users connecting to a collection of WCF services providing the business logic for our application, and these talking to a database - similar to a traditional 3-tier architecture.

Are there any particular gotchas that have slowed down performance, or any design lessons learnt that have enabled this level of scalability?

like image 460
John Sibly Avatar asked Sep 04 '08 14:09

John Sibly


1 Answers

To ensure your WCF application can scale to the desired level I think you might need to tweak your thinking about the stats your services have to meet.

You mention servicing "1000+ client users" but to gauge if your services can perform at that level you'll also need to have some estimated usage figures, which will help you calculate some simpler stats such as the number of requests per second your app needs to handle.

Having just finished working on a WCF project we managed to get 400 requests per second on our test hardware, which combined with our expected usage pattern of each user making 300 requests a day indicated we could handle an average of 100,000 users a day (assuming a flat usage graph across the day).

In addition, since it's fairly common to make the WCF service code stateless, it's pretty easy to scale out the actual WCF code by adding additional boxes, which means the overall performance of your system is much more likely to be limited by your business logic and persistence layer than it is by WCF.

like image 130
Ubiguchi Avatar answered Sep 30 '22 03:09

Ubiguchi