Ok as i mention am working on ASP.NET MVC5 application and am having hard time finding what is the best practice to create, keep open and to close connection to Dynamics CRM 365?
I found some many posts and blogs but everyone pulling on his side of the road.
Some say it's better for every request to open new connection in using
statement so it could be closed right away (that's sounds good but it's a possible that requests will be slow because on every request it needs to open new connection to CRM).
Some say it' better to make singleton
object on application scope, keep it open during application lifetime and reuse it on every request.
Normally i would use OrganizationServiceProxy
in some simple console app but in this case am not sure should i use OrganizationServiceProxy
or CrmServiceClient
or something else?
If anyone have or had some similar problem, any hint would be great.
Thank you :)
*This post is locked for comments
I have the same question (0)