In plone.recipe.zope2instance there is an option called zodb-temporary-storage
that is used to replace Zope's default temporary storage definition.
When is this recommended? What are the upsides and downsides?
In plone.recipe.zope2instance there is an option called zodb-temporary-storage
that is used to replace Zope's default temporary storage definition.
When is this recommended? What are the upsides and downsides?
By default the recipe includes a temporary storage service to store session data:
This is great for the highly volatile session data, but if you are running Zope in a cluster you may want to swap out the storage for something that shared data across your cluster, for example.
The default configuration used is:
which corresponds with the default session management setup for Zope.
I've always avoided using Zope's sessions, as they can easily become a bottleneck (loads of conflicts on the temporary storage), opting to store everything in cookies instead. If you really need server-side session storage, using Beaker (via
collective.beaker
might be a better option.Better still, use
Products.BeakerSessionDataManager
to swap out the default Zope session manager to one backed by Beaker.