Search code examples
javaapache-flexweb-applicationsblazedsamf

How can my Flex application know when data is stale?


I have a 100% Flex based enterprise web application with a Java/BlazeDS backend. In order to create a more snappy user experience I'd like to load a bunch of data into the client right after logging in and hold it the entire session.

This would include items such as user preferences, application skins, application layouts, etc. Things that are infrequently updated on the server.

My question is, in case they are updated, what's a good approach for refreshing the client side data...and knowing when to refresh? I should say that I have no interest in Adobe LCDS!


Solution

  • To update data cached in the client, when that data changes on the server, you'll need to use a server side software that supports server push and will tell the client that an update is needed.

    LiveCycle is one server side software that supports this. I suspect you already knew that, since you call it out in your question.

    GraniteDS is another, and since it is FOSS it may be more to your liking.

    I suspect WebORB also supports push functionality, but don't hold me to that.

    If you don't want to do anything server side; you could set up a call from the client to the server on some timer.