Hi all,

We (Isabelle, Anjana, Suho, NuwanD,  Mohan, Iranga, Jaminda, and Myself)
had a discussion about APIM 1.9 compatibility with DAS last week, and we
need $subject to support APIM with DAS in tenant mode. As per APIM stats
publishing to BAM 2.5.0, the events are published from super tenant (for
all tenants) and having tenant id as separate field in the event. Therefore
in BAM 2.5.0 the events are pushed in cassandra the super-tenant space, and
toolbox and hive scripts runs on the super tenant space and having another
field for tenant id in the summarized table as well. Finally dashboards in
APIM will be connecting to one summarized table, and then filter results
based on the tenant id for the respective tenants to visualize their
statistics.

DAS dashboard is going to live in DAS side rather APIM side, and hence the
respective tenant users can only connect to their respective tenant data
store. Therefore we need to have the statistics events to be pushed into
respective tenant space, rather the super tenant space.

To cater the above requirement, we will have to introduce below approach in
DataPublisher.

1) Create data publisher with privileged super tenant user credentials.
2) setTenantId or setTenantDomain when you want to send the data on behalf
of specific tenant.
3) publish events as usual. If the events are being received by BAM 2.5.0
then it will simply ignore the tenantId/domain part, and it will simply
store the events in the logged in tenant space. In DAS the additional
tenantId/domain will be considered, and it will be inserted in the relevant
tenant space if the logged in user is a valid user with required
permissions.

For the above change to be used at APIM 1.9, we need to do a release for
DataPublisher on 4.2.0 as APIM 1.9 is based on 4.2.0 carbon. I'll work on
this, get the data publisher released soon. Let me know if you have any
concerns in above approach.

Thanks,
Sinthuja.

-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to