Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How does the CRM Async Service retrieve data from the database

Posted on by Microsoft Employee

Can anyone confirm the mechanism that the CRM Async Service uses to access CRM data when running on premise with the Async and Sandbox Service running on the back end servers? 

I have always believed that the backend service used the OrganizationWebService on the front end servers for data access and therefore any full trust (unisolated) plugins that get triggered by an Async Service org service request would execute on the front end server.

However, we are seeing evidence that makes it look like the Async Service connects to some OrganizationWebService container on the same backend server and that the plugins execute in that unisolated plugins execute in that context which displays in the local error logs as MSCRMWebService. 

I don't see any definitive documentation. I'm running v8.1 on premise.

Any insights appreciated!

Thanks, Scott

*This post is locked for comments

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: How does the CRM Async Service retrieve data from the database

    If you have plugin code (plugins or custom workflow assemblies), that runs either asynchronously, or in the sandbox, then they will run on the back end server(s), as that's where the async and sandbox processes run.

    I've not seen definitive documentation on this, but my understanding is that, if the plugin derives the IOrganizationService instance from the context passed into the plugin, then this will not need to do back to the OrganizationWebService on the front end server, and instead uses a local OrganizationWebService container. However, if you create the IOrganizationService instance by other means (e.g. OrganizationServiceProxy), then this would go to the OrganizationWebService on the front end server

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans