Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Ehcache integration possible?

Kadir BASOL
9 years ago May 17, 2012 1:07pm
Kadir BASOL
9 years ago May 19, 2012 10:10am
Kadir BASOL
9 years ago May 19, 2012 10:19am
Jean-François Lamy
9 years ago May 19, 2012 2:04pm
Kadir BASOL
9 years ago May 19, 2012 9:07pm

At least if vaadin team would make some patch integration for next versions of vaadin integrating with caching systems will be great much.

Syam Pillai
9 years ago Jun 10, 2012 6:13pm
Kadir BASOL
9 years ago Jun 10, 2012 6:42pm
Kadir BASOL
9 years ago Jun 10, 2012 6:44pm
Henri Sara
9 years ago Jun 11, 2012 10:08am

Kadir BASOL: Even JSF has Caching mechanism but i donno why vaadin doesn't have.

Unlike e.g. JSF, Vaadin is not a page based framework. Because of this, page caching just does not make sense. Please read the architecture chapter.

Note that the UI structure of the portlet is not in the (very short) page sent as HTML but in a separate UIDL message requested by the client side engine once it has initialized itself. If your application is interactive in any way, the server side structure of the UI must be initialized for every session and the client has to request data specific to that session anyway. This is inherent in how frameworks like Vaadin work.

Anyway, what would you want to achieve with caching here?
If you want to do caching because you have tested that your application is too slow or consumes too much server side resources, most likely the best option would be to profile the application and just cache some internal data from the back-end with whichever mechanism is appropriate - the bottleneck is unlikely to be on the UI side.
If you have completely or almost completely static content and want to avoid the clients loading anything "extra" such as the widgetset (most parts of which are cached on the client after an initial load), Vaadin is probably not the best tool for your task.

Kadir BASOL
9 years ago Jun 11, 2012 11:06pm
Henri Sara
9 years ago Jun 12, 2012 7:00am