When working with Sitecore Content Hub, adopting best practices can significantly enhance your content management efficiency and overall user experience. First, establish a clear content governance structure to define roles and responsibilities, ensuring that content creation, approval, and publishing processes are streamlined. Utilize consistent metadata tagging to improve content discoverability and organization, enabling users to quickly find relevant assets. Regularly audit and update your content to maintain its relevance and accuracy, and implement a robust version control system to track changes and maintain historical records. Finally, leverage automation features to simplify repetitive tasks, allowing your team to focus on strategic content initiatives. By following these best practices, you can optimize your use of Sitecore Content Hub and drive more impactful content outcomes.
Asset Type and Media Type:
Asset Type is manual assigned value. It triggers CH built-in tasks:
• Trigger Vision
• Trigger AI
• Trigger extract archive
Asset Media is automatically assigned based on file extension. It drives Media
Processing content flow:
• Image
• Vector
• Documents
• Audio
• Video
• Archives
Custom Media Processing:
Links:
Public Link:
• Public: no authentication required.
• Do not depend on Content Hub Portal availability
• Integrated with CDN
• Distributed
• Works on asset level
• Custom URL path
• Can specify expiration (could be cached up to 10 minutes)
• Based on rendition
• Can apply transformation (t)
• Image merging (b)
• Force download (download=true)
• Has version (v)
Gateway Link:
• Authenticated
• Depends on availability MCH
• Predictable format: .../api/gateway/id/thumbnail
• Works on asset level
• Automatically take master file if no rendition is specified
• Depends on access rights of users
Signed Delivery Link:
• Public
• Timebombed (20 min)
• Contain user-info for auditing
• Hash for security reasons. Changes on each request.
• Do not depend on Content Hub Portal availability
• Distributed
Graph Build:
• Avoid performing multiple heavy operations at the same time. Consider doing one heavy
operation at a time.
• If there is a need to perform heavy operations, please consider performing the operation
when the environment is not expected to be heavily used by users and you can afford to
wait for the graph to rebuild.
• For data ingestions, consider uploading data in smaller batches. For example, if you plan to
upload 400K assets, consider uploading it in four batches of 100K assets. This way you can
you can verify the changes more quickly, and the processing resources utilization goes
back to normal earlier after each batch processing.
Trigger/Action/Script:
• Do not use In process trigger if not necessary, e.g. validation script
• Do use Objective and Conditions to limit the trigger conditions
• Break down single complicated trigger conditions to multiple triggers
• Do not create nested trigger conditions
• Use API Call or Service Bus Action to Azure Function for complicated code
logic
• Regular review the triggers and remove the unused ones
Throttling:
• Make sure that a rate limit of 15 calls per second (per API integration user) is respected.
• Use the WebSDK, which has embedded throttling, over the REST API (for which you have to code the
retry mechanism yourself).
• If required, modify the Content Hub WebSDK built-in retry policy. By default, any call returning an
HTTP 429 response is retried nine times. You can modify the RetryCount property of the retry policy as
required.
• Establish a retry after logic when you use the API. Group your requests into batches and take action
when you receive an HTTP 429 response.
• Create dedicated API users for each integration to detect which one is overloading your platform or
generating errors. If you have a sizeable integration (with multiple components), divide it into blocks
and create a dedicated API user per block.
Users & User group policies:
• You should not assign a user to more than ten user groups.
• Avoid create too many rules in a group policy. Do not define duplicate rules and
permissions.
• Keep the number of different renditions limited in media processing to avoid generating
many renditions.
• Provide the fewest standard renditions that fit the most downstream use cases possible,
and leverage public links with transformations as much as possible.
• Do not turn on Image AI or Video AI if they are no in use
Happy Learning!