You can just use separate tables for each customer. I haven't tried it
myself yet, so I don't know all the problems you will have to deal
with. Of course than the dynamic handling with class names for the
models gets more complex (and I am not aware of any existing framework
for that) and porting existing python web apps to appengine also gets
much more complicated.

An easier approach is just to prepend keys with a customer identifier,
but then you still have the possibility to query on all customers, and
if things go wrong, possibly breaking the segregation.

I do not know how Google has solved this problem at "Google Apps for
your domain", but of course would love to hear how they have done it.

regards
Roberto

On Dec 20, 10:09 am, hawkett <hawk...@gmail.com> wrote:
> This is a required feature for a commercial SaaS/PaaS offering, and is
> not the same as Bill's issue in previous thread entry (Issue 06).
> This discussion can help you understand why -
>
> http://blogs.zdnet.com/service-oriented/?p=1236
>
> as can bugs like this
>
> http://forum.assembla.com/forums/3/topics/256
>
> We need it to be as close to impossible for one customer's data to be
> made available to another customer, without having to deploy a new
> instance of the application.
>
> Let's call it data segregation.  A concept of 'virtual instances'
> would be a possible approach - so we can aggregate billing & quota
> stats across multiple instances, and also identify individual instance
> billing and quota.
>
> Use Case:
> 1.  Customer comes to my site
> 2.  Clicks the 'Sign up now' button
> 3.  Enters their details
> 4.  Starts using the system
>
> You can't get a more 'core' use-case than that for a SaaS/PaaS
> platform.  Notice there is no requirement to deploy a new version of
> the app for this customer.  The system spawns a virtual instance of
> the app - or at least allows mapping a single datastore partition to
> the authenticated entity.  You coudl extend it by allowing multiple
> datastores per authenticated entity and choosing the appropriate one
> at authentication time.
>
> The key requirement is that we can on-board a customer without manual
> intervention, and accurately understand a single customer's usage
> profile.  Data corruption for one customer does not equal data
> corruption for another customer.
>
> This feature is in some ways the *opposite* of the feature request
> identified by the previous poster - we *do not* want to be able to
> access data in another partition - even if we tried to, and especially
> via a bug in our code.
>
> Here it is, please star it :)
>
> http://code.google.com/p/googleappengine/issues/detail?id=945
>
> Any chance someone at Google has something to say about it?
>
> Thanks,
>
> Colin
>
> On Dec 20, 5:17 am, Ben Bishop <leo...@gmail.com> wrote:
>
> > Not sure what you mean by "in case something happens" - your app and
> > its datastore is served by the same network of servers that serve
> > other apps, so separate accounts won't help, (unless you're going
> > against the Terms of Service, running the risk of having an account
> > banned).
>
> > One App Engine account can have 10 apps, each with its own datastore
> > and quota. You could deploy a single app's codebase to multiple app
> > slots, simply by changing the app name in the app.yaml for each
> > instance. That way you could test on a production "test" app or one of
> > your client apps before rolling out updates to your other client apps.
>
> > You still maintain a single codebase, each client app has its own
> > datastore, and you can control updates.
>
> > On Dec 20, 2:05 am, GTako <tako.ko...@gmail.com> wrote:
>
> > > Hi, is it possible to maintain under 1 application, multiple
> > > datastores that each datastore will be as if it is different app
> > > engine account?
> > > for example: i have a web application that should serve 2 companies, A
> > > and B. I would want to open a google app engine account for the web
> > > application files. the datastores for A and B could be 2 different
> > > deployments under the same app engine account or under seperate
> > > accounts. now assume i have N companies. what should i do?
> > > the reason for seperation is that i dont want the datastores will be
> > > dependent and under same account in case soemthing happens. please
> > > advise.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to