ZODB icon indicating copy to clipboard operation
ZODB copied to clipboard

ZODB on GCS

Open LoganDark opened this issue 7 years ago • 4 comments

Is it possible to use ZODB with Google Cloud Storage? I can't seem to find any information anywhere about it and FileStorage only works with local files. Google App Engine does not support persisting local files.

LoganDark avatar Apr 09 '18 03:04 LoganDark

On Sun, Apr 8, 2018 at 9:00 PM, LoganDark [email protected] wrote:

Is it possible to use ZODB with Google Cloud Storage? I can't seem to find any information anywhere about it and FileStorage only works with local files. Google App Engine does not support persisting local files.

Google cloud storage looks like an alternative to S3, which wouldn't be a backend for ZODB. OTOH, Google offers cloud versions of Postgres and MySQL which you should be able to use with RelStorage. http://relstorage.readthedocs.io/en/latest/

jimfulton avatar Apr 09 '18 13:04 jimfulton

Indeed, GCS sits in the same space as S3: it uses "buckets" to store binary "blobs"/"objects". As one of the maintainers of the google-cloud-storage package, I can say pretty definitely that it wouldn't be suitable for a generic ZODB replacement. OTOH, I think it might be feasible to use GCS to handle ZODB blobs (which may be what @LoganDark was asking).

tseaver avatar Apr 09 '18 14:04 tseaver

(which may be what @LoganDark was asking)

No, my question is exactly how I worded it: using ZODB entirely on Google Cloud Storage. Google App Engine does not support writing to the file system at all.

I'll check out relstorage.

LoganDark avatar Apr 09 '18 14:04 LoganDark

Now there's the issue of getting relstorage to work with cloud SQL...

LoganDark avatar Apr 09 '18 15:04 LoganDark