No, that isn't how it works. Your app executes on a number of server
instances. There could be 1 instance or a 1000 instances of your application
serving your users. That's why you use memcache to share that type of
information.

On Thu, Feb 10, 2011 at 11:35 AM, repairman <[email protected]> wrote:

> in my servlet, i have a static Hashtable which I use to "cache"
> information.  it works fine w/ 1 server node.
>
> in normal NON-GAE setup where you have multiple servers, this approach is
> not good since each server/node does not see what the other cache(static
> hashtable) contains.   so i understand you then use memcache to share
> information.
>
> BUT in GAE environment, it's like a virtual super big server, so
> technically my app runs on this ONE big virtual server.   So technically I
> can use the static variable to cache.   So the question is in GAE
> environment, why would I ever use memcache?   Can't I just keep static
> variable?
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" 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/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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/google-appengine-java?hl=en.

Reply via email to