WCF Proxies

  • Thread starter Thread starter james
  • Start date Start date
J

james

Hi Guys,

Is it expensive to create proxies in WCF? I always create new proxy
instances (when not using sessions) so I don't have to worry about a
proxy falling into a Faulted state. I started an application that
where performance is an issue, and I was curious if creating new
proxies is going to create a noticeable slowdown.

Thanks,
James
 
James,

I would think that this depends on whether or not they are open, or
closed. If you have an open proxy, then you probably have a resource that
you don't want to hold onto for too long (this would depend on the
transport, whether it is a named pipe, a socket, msmq, etc, etc).

I don't think that it's an issue generally though. If you are thinking
of sharing a proxy, then I would make sure that you have threadsafe access
to the proxy, especially if you are performing callbacks.

Overall though, I would create and dispose the proxies as needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top