Hello Guys ,
I've been two days struggling to know the reason but with no luck
I have dynamics 365 on premise and we have some customizations on case form and workflows and plugins on create
When I open new fresh session the request creation took almost 8 seconds , however after save first request and try to submit a new request again it took almost 2 seconds
I need to understand what's the caching behavior on server side that make first request took all this time compared to the upcoming requests coz this is misleading to decide performance is good or not
Thank you,
Thank you for clarifying
but I have a question , the same stateless behavior is also applied for out of the box workflows and custom activities ?
so if I have some workflows on create and some of them have custom activities , so the cache memory will save their instances in first run also
Thank you again
Hi Ahmed,
Plugins are stateless, this means that the server needs to construct the plugin instance in the first call. The same plugin instance will be used in the next operation.
As Esteban said, 8 seconds is a lot for the first execution. I recommend adding some trace logs to your plugin and check the Execution Duration.
Hello, the first time a request is made there is no information about the process in the cache memory, so the information must be loaded (the information that loads will depend on the process that is running so I cannot specify you in this case which is going to be). In the next executions there will already be information in the cache memory so the execution will be faster.
However, it strikes me that the first execution lasts 8 seconds, it is a long time. I would recommend opening a ticket for it.
Thanks!
Community Support Team - Esteban
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156