ai · English Article · Software

Sitecore Stream for PDXP – Page Translation, Roles and more improvements in v.1.5.89

Sitecore has released the new version of Stream for PDXP, v1.5.89.

This is a big release that has a brand new feature – Page Translation that automatically discovers and translates a page item along with any Sitecore items it referenced.

Also, Item translation get enhancements – when item translation occurs, fields that are not supported for translation will carry over their values to the new version of the item alongside the translated content.

Now you can assign specific AI roles to your user, where every role corresponds to a specific feature.

Continue reading “Sitecore Stream for PDXP – Page Translation, Roles and more improvements in v.1.5.89”
English Article · Software

Sitecore .webp images support

The .webp media in Sitecore has been supported since version 10.4. But if you need to add support for lower versions, follow the next steps:

  1. Under the master database add webp items under the next pathes (can be cloned from jpeg item and then adjusted):
/sitecore/templates/System/Media/Unversioned/webP
/sitecore/templates/System/Media/Versioned/webP

2. In Sitecore.config a new media type should be added:

<mediaType name="WEBP image" extensions="webp">
    <mimeType>image/webp</mimeType>
	<forceDownload>false</forceDownload>
	<sharedTemplate>system/media/unversioned/webP</sharedTemplate>
	<versionedTemplate>system/media/versioned/webP</versionedTemplate>
	<mediaValidator type="Sitecore.Resources.Media.ImageValidator" />
	<thumbnails>
	    <generator type="Sitecore.Resources.Media.ImageThumbnailGenerator, Sitecore.Kernel">
	        <extension>png</extension>
	    </generator>
	    <width>150</width>
	    <height>150</height>
	    <backgroundColor>#FFFFFF</backgroundColor>
	</thumbnails>
	<prototypes>
	    <media type="Sitecore.Resources.Media.ImageMedia, Sitecore.Kernel" />
	</prototypes>
</mediaType>
English Article · Software

Sitecore Stream for Platform DXP March Update 2025

Last month Sitecore released the Sitecore Stream for PDXP, and today the new update is available and it’s highly recommended for update because it simplifies installation and brings various bug fixes and UX improvements. Follow the official documentation to learn more.

The release including:

  • Bug Fixes: addressed minor issues to enhance overall stability and performance.

You can use prompts to work with the original content, for example, ask to remove tags, translate, or anything else.

Continue reading “Sitecore Stream for Platform DXP March Update 2025”
English Article · Software

Sitecore XM Migration Tool v2.1 (October 2024)

Last year, I wrote the Sitecore XM to XM Cloud Content Migration article about the brand-new tool from Sitecore that helps to migrate content, media and users to XM Cloud. Now, I would like to share what is new in the just-released XM to XM Cloud Tool v2.1.

Agenda

  1. Where to get?
  2. What’s new?
  3. XMM V1 or V2?
  4. Updates in GUI.
  5. What should I know about new configuration?
  6. Support.
Continue reading “Sitecore XM Migration Tool v2.1 (October 2024)”
Architecture

Steps in Architecting Solution Delivery and Maintenance Lifecycle

  1. Define the customer requirements for the solution.
  2. Design a great solution to meet those requirements.
  3. Implement the designed solution.
  4. Test the solution implementation.
  5. Validate the solution with the customer.
  6. Deliver the solution in the working environment.
  7. Maintain the solution afterward.

Fundamental constraints

  1. The solution needs to meet user requirements.
  2. The solution needs to be delivered on time.
  3. The solution needs to adhere to the project budget.
  4. The solution needs to deliver good quality.
  5. The solution needs to guarantee safe and effective future evolution.
Architecture

Event Driven Architecture – Full Guide

Agenda:

  1. Microservices Architecture
  2. Command and Query
  3. Event
  4. Event-Driven Architecture (EDA)
  5. Producer
  6. Channel
  7. Consumer
  8. Advantages of Event-Driven Architecture
  9. Orchestration and Choreography
  10. Event Sourcing Pattern
  11. CQRS Pattern
  12. When to use Event Sourcing and CQRS
  13. Stateless EDA
  14. Stateful EDA
  15. Event Streaming
  16. Correlation Id
  17. Mixing EDA with Request/Response
  18. Events as Source of Truth
  19. The Saga Pattern

1. Microservices Architecture

  • Based on loosely coupled services.
  • Each service is in its own process.
  • Lightweight communication protocols.
  • Polyglot – no platform dependency between services.

Replaces 2 legacy architectures as Monolith and SOA (Service Oriented Architecture).

The most important part in the EDA is the microservices communication. Which is dictated performance, and scalability. So the Event Driven Architecture handles the communication part.

Typical Microservices Architecture
Continue reading “Event Driven Architecture – Full Guide”
English Article · Software

Security in Sitecore Order Cloud and Access Token

The Sitecore Order Cloud is a rich and mature e-commerce engine.

It has a few must-know security related definitions:

  1. Security Profiles– a custom scope of the roles which can be assigned to the different levels: user, user group, buyer, seller, or supplier level.
  2. Roles – this is data access, which can be granularly assigned, for example, BuyerReader, BuyerAdmin, OrderAdmin, etc.:
The API Roles in Sitecore Order Cloud
Continue reading “Security in Sitecore Order Cloud and Access Token”
Software

Code Smells (Anti-Patterns)

  1. Comments – public methods should have comments. In the same time too many comments is bad and means that the code is unreadable without the comments. The code should be clean enough to avoid comments inside of the methods. Also, you should to avoid the comments which saying “if you update this, then update the next…”.
  2. Duplicated code – is when you have blocks of code that are similar but with slight differences. These blocks appear in multiply places of the system.
  3. Long method – self explained, you don’t want to have long methods. Having a long method can sometimes indicate that there is more occurring in that method than should be. Or it’s more complex than it needs to be.
  4. Large class – its referencing the “God classes”/”Black hole classes” which are getting bigger and bigger. They normally start as a regular size class. But as more responsibilities are needed, these classes seems like the appropriate place to put the responsibilities. But as it going to have more responsibilities, then it tend to attract more responsibilities, hence the class going to be larger and larger and keeps attract more and more responsibilities. To avoid this, you need to be explicit about the purpose of the class and keep the class cohesive, so it does one thing well.
Continue reading “Code Smells (Anti-Patterns)”
Software

Software Quality Attributes

The attributes in the article are technical capabilities that should be used in order to fulfill the non-functional requirements, so the most important and common quality attributes are:

  1. Scalability.
  2. Manageability.
  3. Modularity.
  4. Extensibility.
  5. Testability.

In reality there are much more quality attributes: wikipedia.

Intro illities.png

Scalability

Adding computing resources without any interruption.

Non-Scalable System, which obviously require a lot of efforts to fix it:

  1. Look for non-scalable code.
  2. Rewrite non-scalable code.
  3. Reinforce VM.

Scalable System:

  1. Add VM.
  2. Notify the Load Balancer.

There are 2 types of scalability: scale up (vertical) and scale out (horizontal).

ScaleUpScaleDown.png

The preferable option is Scale Out which has 2 main benefits:

Continue reading “Software Quality Attributes”