Re: [openstack-dev] Db interaction: conductor vs objects vs apis

2014-02-18 Thread Dan Smith
> - "fat model" approach - put the db interaction in objects If it's just DB interaction, then yes, in the object for sure. > - put the db interactions in the conductor itself There is a reasonable separation between using conductor for mechanics (i.e. API deferring a long-running activity to co

Re: [openstack-dev] Db interaction: conductor vs objects vs apis

2014-02-18 Thread Russell Bryant
On 02/18/2014 01:22 PM, Pitucha, Stanislaw Izaak wrote: > Hi all, > I'm writing some new code which uses objects sent around by rpc. I got to > implementing some new conductor methods and started wondering... what's the > current recommended way of interacting with the database? Many seem to be > a

[openstack-dev] Db interaction: conductor vs objects vs apis

2014-02-18 Thread Pitucha, Stanislaw Izaak
Hi all, I'm writing some new code which uses objects sent around by rpc. I got to implementing some new conductor methods and started wondering... what's the current recommended way of interacting with the database? Many seem to be around: - "fat model" approach - put the db interaction in objects