Hi all,
*Problem*
In present conditions Governance registry publisher and store can only be
configured in the same cluster domain. Retrieving the actual resource
content from the "Cache Backed" registry when resources are submitted for
indexing can be identified as the bottleneck for this limitation.
So the updated data in the publisher is not available at the store if they
are in separate cluster domains.This is due to cache registry being
populated with stale data which are not updated.
Basic flow of resource retrieving for indexing process is shown below .
*Requirement*
Enable governance registry Store and publisher to be configured in separate
cluster domains . For example configure Publisher in internal server and
Store in DMZ.
*Proposed Solution*
Requirement is to get the resources from the embedded registry avoiding
cache backed registry when resources are submitted for indexing. So the
updated resources will be available which enables publisher and store to be
configure in separate cluster domains.
Following are the two sub tasks of the proposed solution.
1. Remove the resource from cache which is to be indexed.
This can be achieved by including the resource path
as a no cached path in the "registry context". This will invalidate
caching for all instances of indexing process. So the resources will be
directly fetched from embedded registry.
2. Adding a property to the indexing configuration of the
registry.xml .
This property can be enabled or disabled using
registry.xml which will enable or disable caching based on the custom
requirement. When there is no requirement to have Publisher and Store in
separate cluster domains this property can be set to false. So the
resources will be fetched from cache registry. If it is set to true
resources will be fetched from embedded registry.
Suggestions and feed backs are welcome.
Thanks!
Rajith
--
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture