Meetu Maltiar's Blog

Meetu's thoughts on technology and software development

Archive for September 15th, 2010

Implementing Multi-tenancy On Google App Engine

with one comment


Google recently added support for multi-tenancy for applications via the Namespaces API. We are in process of porting an application to Google App engine. We were thinking of making our application multi-tenant. With the new Namespaces API in our arsenal we decided to give it a try. To our surprise implementing multi-tenancy is easy, we were done with it in couple of hours!

With multi-tenancy, multiple client organizations (or “tenants”) can all run on a same hosted application. In effect due to segregation of data using a unique namespace for each client. This allows us to serve the same application to different customers, with each customer seeing their own unique copy of the application.

Let’s see how we went about implementing it. First of all we needed a Filter it sets unique name-space for each request. Here is the code listing.
Read the rest of this entry »

Written by Meetu Maltiar

September 15, 2010 at 19:19

Posted in Cloud, Java, Wicket

Tagged with , ,