Questions Tagged With resthttps://answers.axonivy.com/tags/rest/?type=rss&user=John%20Moserquestions tagged <span class="tag">rest</span>enFri, 07 Feb 2020 04:14:06 -0500Engine Performance - Profilinghttps://answers.axonivy.com/questions/4379/engine-performance-profiling<p>Dear Ivy Team</p> <p>My test setup is as follows : 4 CPU (i7, 3GHz), Xms128m, Xmx2048m</p> <p>2 Browsers, every 3 seconds a click on the UI during 60 seconds</p> <p>1 With visualvm it shows that Ivy spent approx 16s with reading, the issue is I can not quantify how much data it is (since your performance / rest client logging is not working). But my guess is, it can only be a few hundred KB in total.</p> <p>=&gt; 16s seem to me a lot, can you confirm my results ?</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/Unbenannt.PNG"></p> <p>2 Rest Client - java &gt; Ivy.rest() : is Ivy.rest() client pooled ? (since the Rest Clients are pretty heavy weight they should be pooled otherwise memory consumption skyrockets and also performance will degrade if they are used like in a micro services architecture)</p> <p>=&gt; Ivy.rest() did you do any performance analysis ? Is this the "required" way of using Rest Client in Ivy ?</p>John MoserFri, 07 Feb 2020 04:14:06 -0500https://answers.axonivy.com/questions/4379/engine-performance-profilingivyrestStreaming with Ivy REST APIhttps://answers.axonivy.com/questions/3602/streaming-with-ivy-rest-api<p>Dear Ivy Team</p> <p>I have the following case: User should be able to upload scanned documents (1...xx MB) via Ivy and the data should be streamed through the REST service (layers). Since each REST service decouples (therefore no shared memory) the memory required to transport the document data could be quite high. To avoid that I would like to stream the data down to the persistency layer.</p> <p>Problem: Currently I am trying to pass binary data -&gt; "In Inscribe Rest Service Call Activity" -&gt; Body, entity -&gt; binary data and content-type=application/octet-stream and read it by the consumer REST service with HttpServletRequest request-&gt;getInputStream(). Though here I get an error (InputStream seems to be already closed).</p> <p>Question: Is this approach correct or do I have to use multipart/form-data (if yes, do you have an example, especially if the call is executed by the Ivy REST client).</p> <p>Thanks in advance for a feedback.</p> <p>Best Regards John</p>John MoserTue, 08 Jan 2019 10:00:55 -0500https://answers.axonivy.com/questions/3602/streaming-with-ivy-rest-apiapirest