Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-09-29 Thread Kishanthan Thangarajah
On Thu, Sep 8, 2016 at 11:04 AM, Rushmin Fernando wrote: > Thanks for the responses. > > Yes we have thought about maintaining a cache. But then we have to write > code to invalidate / update the cache once an app is updated (@Imesh : > practically the frequency is very low) > > In order to reduc

Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-09-07 Thread Rushmin Fernando
Thanks for the responses. Yes we have thought about maintaining a cache. But then we have to write code to invalidate / update the cache once an app is updated (@Imesh : practically the frequency is very low) In order to reduce the complexity we can make this cache a not-distributed one and updat

Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-08-28 Thread Imesh Gunaratne
On Tuesday, August 23, 2016, Chathura Ekanayake wrote: > Hi Rushmin, > > Can't we maintain a cache of domain objects, may be in a data holder > instance? > Yes, using a cache with a data holder instance would be appropriate for this problem. Do we know how frequently these data sets get updated

Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-08-23 Thread Chathura Ekanayake
Hi Rushmin, Can't we maintain a cache of domain objects, may be in a data holder instance? BTW, what are the attributes of an example domain object (e.g. webapp object)? - Chathura On Mon, Aug 22, 2016 at 11:54 AM, Rushmin Fernando wrote: > Hi Isuru, any comment on this ? :-) > > On Thu, Aug

Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-08-21 Thread Rushmin Fernando
Hi Isuru, any comment on this ? :-) On Thu, Aug 18, 2016 at 10:54 AM, Rushmin Fernando wrote: > It depends on the applications, users invoke Isuru. > > If users invoke all the apps then we end up fetching all the apps by the > handler instances for the apps (synapse APIs). ( A handler instance o

Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-08-17 Thread Rushmin Fernando
It depends on the applications, users invoke Isuru. If users invoke all the apps then we end up fetching all the apps by the handler instances for the apps (synapse APIs). ( A handler instance only fetched and stores only one app instance) In the current implementation the fetch happens on demand

Re: [Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-08-17 Thread Isuru Udana
Hi Rushmin, Do we need to fetch domain objects from the database for all the applications or is it only for a set of applications ? On Tue, Aug 16, 2016 at 1:35 PM, Rushmin Fernando wrote: > > In App Manager we use carbon mediation engine as the gateway. Thus the > business logic is implement

[Architecture] [AppM] Best practice to re-use domain objects in the gateway handlers

2016-08-16 Thread Rushmin Fernando
In App Manager we use carbon mediation engine as the gateway. Thus the business logic is implemented in few handlers. In order to code business logic, we need to fetch domain objects from the database via a service. The primary domain object the "webapp' object. (Please see the attached image) I