Can't we use a tenant event listener and remove the entry from the map on a tenant deletion event?
On Fri, Sep 5, 2014 at 7:50 PM, Godwin Amila Shrimal <[email protected]> wrote: > Hi, > > We are working on tenant deletion implementation, once we perform the > current tenant deletion operation in *TenantMgtAdminService* it deletes > registry, user store etc. data. But it doesn't allow to create a tenant > again with the same tenant domain name until restart the server. > > Reason for above situation is tenant domain and id is keeping in a map( > *tenantDomainIdMap*) inside the *JDBCTenantManager*. When perform delete > operation it check the availability from this map. > > As per the discussion we can see following solutions for this. > > *Solution1* > Check the tenant availability from database not from memory data, but this > will be costly if it is a frequently perform operation. > > *Solution2* > We can give a public access to delete the particular key in the map, this > will be a security issue which people can pass tenant domain and perform > deletion. > > *Solution3* > Run a periodic operation which check the availability of the tenant in the > database and delete from map which are not exist. > > > We are looking for a feedback on this. > > Thanks > Godwin > > > -- > *Godwin Amila Shrimal* > Senior Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94772264165* > linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* > twitter: https://twitter.com/godwinamila > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Thanks & regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
