web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Making concurrent requests to Dynamics AX 365 Custom Service

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm writing a connector application to integrate Dynamics AX 365 (DAX365) with the client legacy online retail store. The scenario is as follows: Customers visit the online retail store and places the orders. The orders are then synced to DAX365 through connector, shipped and invoiced at the back store, and the information is synced back to online store. Other than the Sales Orders, products and inventory information is also synced between the systems.

To keep the sync happening in real-time I have chosen the (REST based) Custom Services to pass data  to DAX365 instance. I'm able to setup the Custom Service and consume it from my Connector (.Net) app, however, while running some load tests I found a weird behavior. To get the better throughput I'm making concurrent requests to Custom Service from my app. I'm invoking multiple worker threads each of them calls the service simultaneously and get the response.

What I have observed is if I have 100 sales orders to sync and if I make 10 concurrent requests or I just make 2 concurrent requests I get the same throughput from the DAX365 custom service. The time my connector app takes to sync the 100 Sales orders with 10 worker threads or 2 is almost the same. At first I thought the issue is with my .Net code and I have not dealt the threads parallelism and service calling in right way but I have tested it out thoroughly with another stub service hosted outside AX and it works perfectly fine, I'm able to achieve the greater throughput with that. 

So here's my question: is there any limitation with Custom Service that you cannot make more than 2 concurrent requests from the single session, or I'm missing anything? Is it something that can be change through some configuration on DAX365? I can double the throughput if I run the same service calling code through two different processes running in parallel but I cannot get it through multiple threads in a single process?

Looking forward to hear your valuable feedbacks.

Thanks,
-Moin

*This post is locked for comments

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans