Best Practice Question [message #1847252] |
Thu, 21 October 2021 06:44 |
|
Hello,
I have a question regarding Eclipse scout's best practice, when creating a form aor a view the SDK creates a service behind so if we follow the wizard each view or a form will have its own interface in shared and service in server. My question is :
when we group the services for some forms and views in one service does we make the server performance better ?
How to measure the server time response, is there a tool for this ?
Kind Regards
|
|
|
Re: Best Practice Question [message #1847784 is a reply to message #1847252] |
Mon, 08 November 2021 09:28 |
|
Quote:when we group the services for some forms and views in one service does we make the server performance better ?
No. All remote calls are handled by the same service tunnel. This means, the call is serialized on the client side and sent to the server as an HTTP call. On the server side, the call is received by the ServiceTunnelServlet (/process) and dispatched the corresponding service. Having more or less service classes does not have any (noticable) impact on performance.
Quote:How to measure the server time response, is there a tool for this ?
Since it is just HTTP, you can use any proxy-based tool you like. To measure the time in the application itself, you could @Replace the ClientHttpServiceTunnel and override the tunnel() method to measure the time. Scout already has a built-in service called org.eclipse.scout.rt.client.services.common.perf.IPerformanceAnalyzerService that collects some information, maybe that is enough for you?
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.04456 seconds