Hi All,
ClientContext is being deprecated for ContexHub. If you have experience of using both, please see if you can help with following information
Any additional information, experiences around clientcontext, contexthub would also be helpful.
Thank you
Sandeep
Replying to First part of the question:
1. Caparison between 2:- AEM 6.1 : ClientContext Vs Context hub
Context hub is a replacement for client context it is better and more lightweight or ClientContext is basically the old version, ContextHub its replacement.
Client context had performance problems, it forces integration to wait on stores.init.js, ajax call, which slows stuff down a lot (esp site catalyst page-view calls). Context hub is a lot faster and fixes that.
Engineering team is avoiding changes to client context. Future is context hub.
In 6.1, the feature set of ClientContext was still higher than ContextHub, which itself relied on some ClientContext core functionalities to work.
With 6.2, we should have closed the gap, and we're currently working with Product Management to get the ClientContext deprecated in favor of the ContextHub.
I guess it would be a good idea to highlight some of the major architectural changes to clarify why ContextHub soon replaces ClientContextt:
ContextHub decouples the Kernel from the UI leading to a much lower footprint on publish
ContextHub Stores can deal with complex hierarchical objects while ClientContext was limited to key-value pairs
The eventing model of ContextHub is a lot more sophisticated including the fact that eventing happens as soon as stores are available and not just after „all“ stores have been loaded
Loading behavior can be controlled on a fine grained level (sequence of loading & synchronous as well as asynchronous store loading)
All in all ContextHub is capable of every aspect ClientContext could deal with and is optimized in the most significant areas of clientcontext that turned out not to work perfect due to the architecture.
~kautuk
Views
Replies
Total Likes
I have created the document , will upload it here for the migration guide.
Also let me know you need the package.
Thank you kautuksahni and tc82. The package and document would be helpful.
Views
Replies
Total Likes
tc82 - Gentle reminder, if you could share the document, package you were talking about.
Views
Replies
Total Likes
style="padding-left:45px"
style="padding-left:45px"
style="padding-left:45px"
style="padding-left:45px"
style="padding-left:45px"
function callingSatellitePageBottom(){
if (window.ContextHub) {
ContextHub.eventing.on(ContextHub.Constants.EVENT_INITIALIZED + ":XXXX", function(event, data) {
_satellite.pageBottom();
});
}
}
<cq:includeClientLib css="cardinalhealth.oe.customclientcontextlibs" />
<cq:include path="contexthub" resourceType="granite/contexthub/components/contexthub"></cq:include>
//ContextHub tree details command:
var data = ContextHub.getStore('XXXX').getTree();
I have attached the zip of files modified from my local.
Note: XXXX is the store name
am not able to attache the package.
See these new Context Hub articles:
1. Scott's Digital Community: Using the Adobe Experience Manager ContextHub to work with Personal Exper... (Personalization)
2. Scott's Digital Community: Using the ContextHub with the Experience Manager Toy Store site (Geo-data)
Views
Likes
Replies
Views
Likes
Replies