programming-idioms icon indicating copy to clipboard operation
programming-idioms copied to clipboard

Backend multitenancy

Open Deleplace opened this issue 7 years ago • 3 comments

See https://cloud.google.com/appengine/docs/standard/go/multitenancy/multitenancy

Any alternative "version" of the backend, even assigned 0% traffic, poses a risk of confusion of the Datastore data, the Memcache data, the Search indexes, and the delayed Tasks.

Make sure that alternative versions can never mess up with the prod data.

Deleplace avatar Sep 30 '18 11:09 Deleplace

This may be taken care of in funcs handle and handleAjax, with (*Request).WithContext and appengine.Namespace

Deleplace avatar Sep 30 '18 11:09 Deleplace

Not that easy: I end up with panic: appengine: NewContext passed an unknown http.Request

Deleplace avatar Sep 30 '18 13:09 Deleplace

https://github.com/Deleplace/programming-idioms/commits/issues/86-namespaces

Deleplace avatar Sep 30 '18 15:09 Deleplace