
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)