userbb
userbb

Reputation: 1874

Google storage for each user

I want to create application with consists of Desktop application and google cloud storage. So, each my client should have separate cloud storage. Does google provide such thing?

More info. Because I do not know what can offer google app engine i wrote this question. I need some database hosting for my desktop application. In future I think I will switch to GWT and app engine. I want to sell my application so each my client can't access my other client databases. I was thinking that would be safer if each client will have data in a separate database so I can't do some mistakes in code.

Upvotes: 0

Views: 146

Answers (3)

Gautam
Gautam

Reputation: 1107

You can use GAE namespace capability as pointed above by @dragonx without Google authentication.

Use a client name as a namespace identifier (needs to be unique) . How you fetch this client name is upto you. It can be stored in GAE itself if you wish or can be deciphered from the url used specific to a client.

Do have a look at the GAE multitenancy link https://developers.google.com/appengine/docs/java/multitenancy/multitenancy

The example here can be easily adapted to use any string identifier per client.

Upvotes: 0

dragonx
dragonx

Reputation: 15143

You can separate data in the datastore using namespaces on google app engine:

https://developers.google.com/appengine/docs/java/multitenancy/multitenancy

It's up to you to decide how to implement the namespaces. You can separate them out by your user authentication system.

Upvotes: 1

Shay Erlichmen
Shay Erlichmen

Reputation: 31928

You can create a folder per client and restrict the folder access to the user (works only with Google Accounts) or your can do the same with buckets, create a bucket per user (which might be an overhead if you have a lot of users).


For database AppEngine datastore has the ability to separate the data by namespaces. this doen't require any user account and its your responsibility to select with which namespace to work with per request.

Upvotes: 0

Related Questions