[Ovirt-devel] [PATCH server] Revised attempt at refactoring the vm_controller using the service layer.

David Lutterkort lutter at redhat.com
Tue Apr 21 21:49:15 UTC 2009


On Tue, 2009-04-21 at 13:14 -0700, Ian Main wrote:
> So with this service layer.. with it being included and setting local
> properties of the object, will that be thread safe?  Or will we have
> to do locking around each call?
> 
> I'm not sure yet if the agent will be threaded.. but it certainly
> could have a thread per method invocation..

To echo what Scott said: I would prefer if we followed the rails model
fairly closely, with some sort of notion of a 'QMF controller', and
instantiate one for every method call from the QMF agent.

Given that we want to minimize the amount of things we keep in memory
(mostly to avoid cache coherency issues between memory and DB), we want
the QMF API to be as statefree as possible.

David





More information about the ovirt-devel mailing list