You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Tilma <m....@func.nl> on 2009/07/14 07:53:44 UTC
How to speed up a page that uses data from a slow webservice
Hi all,
I have a page and it's a bit slow and I want to speed it up, but don't
know a proper solution.
The case:
I have a page that contains 5 components showing different data
retrieved from a webservice. Each webservice call takes about 1 second.
Besides that I have 2 buttons who's visibility is based on data from
also the same slow webservice. In total there are 7 calls taking about 7
seconds to finish and to render the page.
I could cache the data, but that will only work the second time. I was
thinking about a way to preload the data and maybe use different threads
so the calls don't have to wait for each other...
Any ideays?
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to speed up a page that uses data from a slow webservice
Posted by Alex Objelean <al...@yahoo.com>.
What about using AjaxLazyLoadPanel? Another solution could be: when page is
loaded, call from javascript a callback which will initiate an ajax call
responsible for updating each component. I did something similar, but using
other technologies (struts + dwr)... I think there could be similar approach
also with wicket.
Alex Objelean
Martin Tilma wrote:
>
> Hi all,
>
> I have a page and it's a bit slow and I want to speed it up, but don't
> know a proper solution.
>
> The case:
>
> I have a page that contains 5 components showing different data
> retrieved from a webservice. Each webservice call takes about 1 second.
> Besides that I have 2 buttons who's visibility is based on data from
> also the same slow webservice. In total there are 7 calls taking about 7
> seconds to finish and to render the page.
>
> I could cache the data, but that will only work the second time. I was
> thinking about a way to preload the data and maybe use different threads
> so the calls don't have to wait for each other...
>
>
> Any ideays?
>
> Martin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/How-to-speed-up-a-page-that-uses-data-from-a-slow-webservice-tp24474082p24475195.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to speed up a page that uses data from a slow webservice
Posted by Igor Vaynberg <ig...@gmail.com>.
in onbeforerender of the page you can execute the 7 calls you will
need in parallel and cache the data in fields.
if you want your page to feel more resposive you can present the user
with a busy indicator and using ajax feed back status messages or a
progressbar, once you have the data redirect to a page that presents
it.
-igor
On Mon, Jul 13, 2009 at 10:53 PM, Martin Tilma<m....@func.nl> wrote:
> Hi all,
>
> I have a page and it's a bit slow and I want to speed it up, but don't
> know a proper solution.
>
> The case:
>
> I have a page that contains 5 components showing different data
> retrieved from a webservice. Each webservice call takes about 1 second.
> Besides that I have 2 buttons who's visibility is based on data from
> also the same slow webservice. In total there are 7 calls taking about 7
> seconds to finish and to render the page.
>
> I could cache the data, but that will only work the second time. I was
> thinking about a way to preload the data and maybe use different threads
> so the calls don't have to wait for each other...
>
>
> Any ideays?
>
> Martin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org