DEV Community

Jeroen FΓΌrst for TrueLime

Posted on

Kentico SaaS: First Contact

In this article, we will take a first look πŸ‘€ into the exciting new world of Kentico SaaS. Kentico SaaS offers customers a worry-free way to host their Xperience by Kentico websites. It provides a cloud environment equipped with all the essential components needed to run your platform smoothly. Furthermore, I will also walk you through setting up a new Xperience by Kentico project from scratch, preparing it for SaaS deployment, integrating it with a CI/CD pipeline via Azure DevOps, and automatically rolling it out to various environments within Kentico SaaS. Finally I will also touch on the topic of Continuous Deployment, a much-anticipated new feature in Xperience by Kentico.

Exploring hosting options: Engage

In today's world 🌎, customers expect to operate their websites seamlessly, whether it's to meet performance and scalability demands during peak moments or to ensure the security of sensitive data. Meeting these expectations is no longer an option but a fundamental requirement. Fortunately, services like Microsoft's Azure cloud ☁️ address many of these concerns when used as a platform-as-a-service. This is an area where we have been diligently working on and making improvements for years.

There are situations where it can be difficult to keep up with all the technological changes. If your agency lacks the resources to tackle this, such as providing education πŸŽ“ for Certified DevOps Engineers, offering independent hosting services can be challenging. Organizations are increasingly looking for SaaS solutions with straightforward service levels.

This is where Kentico SaaS can offer an appealing alternative πŸ’ͺ. Kentico SaaS offers secure, scalable, and cost-effective hosting for your platform. This service is specifically designed for Xperience by Kentico, ensuring that only essential components are deployed to run your platform. Furthermore, the platform undergoes continuous improvement, reducing the necessity for ongoing knowledge investments. If a new cloud πŸ‘½ technology becomes available, there's a good chance that it will be adopted and made available, ensuring your platform remains up-to-date.

However, it's important to note that there are a few considerations, especially if you're accustomed to taking matters into your own hands and conducting thorough analyses 🧠. In such situations, you may find it necessary to enlist additional support to address any challenges in understanding platform errors, as obtaining comprehensive diagnostic info can be demanding, even though monitoring tools are available. On the other hand, you can also leverage this to your advantage πŸ˜‰.

Creating Kentico SaaS projects: Make it so

Getting your application ready for Kentico SaaS was easier than I had anticipated. By running a few commands, you can make your Xperience by Kentico SaaS-ready πŸ’―.

Add the --cloud parameter when creating your Xperience by Kentico project. This parameter installs a boilerplate project suitable for SaaS deployments.

The next steps involve building and configuring your application, and then preparing it for deployment. Kentico offers a PowerShell script for generating the Kentico SaaS deployment package. This package can be uploaded via the Xperience Portal, and then rolled out to different environments. This process can also be automated, as we'll discuss shortly.

Xperience Portal

Of course, the prerequisite is to subscribe to Kentico SaaS. There are several editions with various functionalities and features to consider. In this example, I'll be using the medium tier, which provides QA, UAT, and PROD environments, as I prefer a robust DTAP approach.

Streamlined Deployment: The Final Frontier

Release pipelines have become essential building blocks for DevOps engineers. We typically use pipelines for two purposes:

  1. Compiling and automatically testing the application with each commit.
  2. Automatically building and deploying release-ready code.

Kentico has thoughtfully integrated these aspects into the Kentico SaaS service, offering APIs to deliver deployment packages, making it remarkably straightforward to seamlessly integrate into your own release pipeline.

Send the package via a POST request to the deployment API endpoint: https://xperience-portal.com/api/deployment/upload/PROJECT_GUID.

Once a deployment package is received, Kentico immediately starts deploying πŸš€ it to the target environment. This process takes a few minutes, and the environment is updated. Error handling is also built in, should the package encounter deployment issues.

Ongoing deployment

Once tests are successful and you have the green light βœ… for the release, you can proceed to the next environment via the Xperience Portal. The portal provides all the necessary information to manage this process effectively, including an audit trail to ensure only authorized personnel can push releases.

The past is written, but the future is left for us to write

Xperience by Kentico introduces a new feature called Continuous Deployment. The purpose of Continuous Deployment is to facilitate incremental deployments. It shares similarities with Kentico's Continuous Integration but has some significant distinctions. The Continuous Integration feature serializes content and objects into XML files to maintain synchronization πŸ”„ across developer environments. While this approach is effective for version control, it was not suitable for deploying to other environments. Typically, additional tools like the BizStream Toolkit, Content Staging, or custom deployment tools were used πŸ˜‰.

The workflow for Continuous Deployment is as follows: First, you need to generate the Continuous Deployment configuration file. The configuration file enables you to specify the restore mode (Create/CreateUpdate/Full) for each object, which determines the operations required in the target database during repository restoration. The next step is to generate the Continuous Deployment files. This can be achieved by using the following command:

dotnet run --no-build -- --kxp-cd-store

When a release is submitted to the Xperience Portal, the Continuous Deployment files will be processed automatically. Once the release is completed, you will notice that the changes are available. This automation is an additional advantage when you use Kentico SaaS 😍.

To Boldly Go ✨

So far, you've been able to read about my initial experiences with Kentico SaaS. I've demonstrated how simple it is to make a project SaaS-ready. I've also covered the generation of a deployment package and how to submit it to the Xperience Portal. What has pleasantly surprised 🎁 me, in particular, is the straightforwardness of the deployment process. You can see that Kentico has put considerable thought into keeping this process as simple as possible. Additionally, I find the new Continuous Deployment feature personally very appealing. It will be very interesting to see how it performs in upcoming Xperience by Kentico projects. To be continued!

Top comments (0)