Sending AWS CodeBuild notifications to Microsoft Teams using lambda function

I’m currently working on s project that doubles down on serverless computing and consumption-based services in general. When it comes to serverless, usually, the first two things that come to mind are AWS Lambda and serverless framework (they nicely capitalize on the similarity of the approach with the product). They nicely play together and we use both, so as other AWS platform services.

When it comes to DevOps, we decided to go with CodeBuild as it can nicely be provisioned as a part of your core infrastructure. It works great, has a build definition that can be versioned in your repository and so on. However, when it comes to notifications it turns out that there are not many out-of-the-box integrations as let’s say in Azure DevOps and you will need a bit of coding / configuration to make it work.

Continue reading “Sending AWS CodeBuild notifications to Microsoft Teams using lambda function”
Sending AWS CodeBuild notifications to Microsoft Teams using lambda function

Getting better observability of Sitecore with Azure Application Insights Map

I believe that everyone, who installed Sitecore Azure PaaS had their silent question moment: “Where are all my logs and how I suppose to monitor this?”. While the first question was answered multiple times (e.g. on StackOverflow), the second part is a bit more complex.

You might think what complexity I’m talking about? Yeah, putting Application insight Key is a no-brainer but it is far from enough to get observability of your system.

Most of you should be familiar with this one green circle. Sol let’s break it down into more manageable parts.

Continue reading “Getting better observability of Sitecore with Azure Application Insights Map”
Getting better observability of Sitecore with Azure Application Insights Map

Troubleshooting performance of Sitecore JSS in Azure App Services

Some time ago we faced an issue with NodeJS slowing JSS in integrated mode significantly over time in Azure PaaS. We saw request growing from sub-second to 3-4 seconds. Here is what you need to check as you do troubleshooting of your solution.

Continue reading “Troubleshooting performance of Sitecore JSS in Azure App Services”

Troubleshooting performance of Sitecore JSS in Azure App Services

Sitecore GraphQL schema and query cache reset

As you know GraphQL requires schema to execute your queries. In Sitecore implementation the schema is regenerated every time you touch templates.

What we recently discovered, that if you have separate CD and CM, schema on CD node will not be refreshed after publish.

Luckily, this is quite easy to fix. You need to create an event handler and subscribe it to publish:end:remote event.


public class TemplateUpdateHandler : Sitecore.Services.GraphQL.Content.EventHandlers.TemplateUpdateHandler
{
public TemplateUpdateHandler(IGraphQLEndpointManager endpointManager) : base(endpointManager)
{
}

public void OnPublishEndRemote(object sender, EventArgs e)
{
base.Reset(null);
}
}

Sitecore GraphQL schema and query cache reset

Catching Server-side Rendering Errors in React JSS Apps

It was quite common for Sitecore MVC implementation to add logic around renderings that will catch unexpected exceptions in them and save your page from complete collapse. Such logic hides your component from end users and might only put something in HTML comments, while during preview or editing experience it will give some visual indication of an error and its details.
Such functionality can also be very useful for React JSS applications, but it is not that simple especially on for isomorphic apps leveraging SSR (server-side rendering).

Continue reading “Catching Server-side Rendering Errors in React JSS Apps”
Catching Server-side Rendering Errors in React JSS Apps

Mixing Sitecore JSS and SXA

This investigation of Sitecore JSS and SXA was done quite a while ago, but I didn’t get a chance to post it here. I need to go back to validation of this setup so this will be a living post and I’ll be updating as new findings arrive.

You might ask why would you need to mix them, but the reason is pretty simple. SXA brings a lot of functionality outside of presentation configuration (which I’m not a fan of) that can be useful for any site, like sites management, wizards for sites creation, local data sources, various site settings, etc.

Continue reading “Mixing Sitecore JSS and SXA”

Mixing Sitecore JSS and SXA