WCF : Instance Management


http://www.dotnetspark.com/kb/2071-3-ways-to-do-wcf-instance-management-per.aspx

Per call

. You want a stateless services
. Your service hold intensive resources like connection object and huge memory objects.
. Scalability is a prime requirement. You would like to have scale out architecture.
. Your WCF functions are called in a single threaded model.

Per session

. You want to maintain states between WCF calls.
. You want ok with a Scale up architecture.
. Light resource references

Single

. You want share global data through your WCF service.
. Scalability is not a concern.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s