On 15 Nov 2007, at 08:55, Artur Kraft wrote:

>
> Hi Rifers,
>
> I got a conceptual question about the handling of global data. I  
> want to
> implement a browser game with rife and therefore each player has
> individual data and needs access to global data.
> I thought on startup the webapp retrieves all global data from the
> database and stores it in a way it can be fast accessed. Maybe one
> singleton with access to various hashmaps behind it. That way it would
> be present in memory and no db action had to be made for the global  
> data.
>
> But I am not so sure about it now. It seems like every user/webapp
> action which involves data has to access the db. What about temporary
> data like if you have a sequence of actions. Do you have to save all  
> the
> temporary data also to the db? E.g. you have a webapp where you are  
> able
> to complete courses and each course consist of ten questions, but you
> only show one question at a time. Do have to store every answer in the
> db until all ten answers were given, although only the fact if the
> course was passed or not is relevant?

RIFE applications typically use continuations for temporary data.  
Other possibilities to do this is to use a caching, like Ehcache, or  
to store data in a servlet session.

Hope this helps,

Geert

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to