Speed of Web Services

timothyetimothye Posts: 2Member
edited 2008-10-06 in NAV Three Tier
I've implemented a codeunit which writes a file to disk.

This codeunit is run in the OnRun() method of the codeunit 20 times. When run like this it takes next to no time to run.
However, when I execute it using Webservices 20 times from C# Application then it takes around 5 seconds.

Any ideas where this overhead is coming from?


  • ajhvdbajhvdb Posts: 672Member
    How much time does it take for the webservice to respond?
  • kinekine Posts: 12,562Member
    Cold test or warm up done before test? Do not forgot that first call can take too much time because the cache and other overhead...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • nunomaianunomaia Posts: 1,153Member
    Webservices engine is running over .NET (WCF, etc) technology. In those technologies the first 10 calls or something will slower because .NET engines needs some “warm up”. Then it complies the code internally, etc. (You could about .NET engine optimization)
    Web services it will always be slower than other technology. WS have many XML parsing and validations so it will be always slower then reading directly from database.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
Sign In or Register to comment.