Getting started with Azure Search

If you have any search background experience such as Lucene or Elastic Search, you will most likely be able to relate to how Azure Search works and the components that are provided to enable you to create a search service. However, if you have not, fear not, it is not a pre-requisite, it just gives you a little head start. Main components of Azure Search Azure Search is made up of 3 main parts....

March 3, 2020

Bulk insert Json Documents into Azure Cosmos DB

This is going to be a quick post, but I just wanted to share how you can do a one time bulk import to a Azure Cosmos DB if you have a json file that contains all your documents. You don’t need to install any software and this option is available in the Azure Portal as well as the local Azure Cosmos emulator portal. Log into the Azure Portal https://portal.azure.com or use your local Azure Portal https://localhost:8081/_explorer/index....

February 6, 2020

Azure Cosmos Emulator installer is not responding - resolved

If you have ever attempted to download the Azure Cosmos Emulator msi 2.7.2 or later from Microsoft but have come across an error which says: “Installer is no longer responding.” Something like this: You are not alone. You may not actually get this error immediately. In fact, for me, I only saw this dialog about 20 minutes after I double-clicked the msi installer. You may also noticed a text file in the same location of the installer with an error log such as this:...

February 4, 2020

How to add Application Insights into an ASP.NET Core Web and Console App

Application Insights is Microsoft Azure’s monitoring offering for not just dotnet apps, but Node.js and Java as well. It can be easily integrated into web based and console based applications as well as mobile apps. Application insights can track and monitor live statistics and metrics such as http requests rates, response times, exceptions and more. Once integrated, there is a wealth of information in the Application Insights section within the Azure Portal....

December 5, 2019

Getting started with Azure Service Bus with MassTransit

MassTransit is a free and open-source library that helps you build message-based applications and services in .NET. At the time of writing, it supports RabbitMQ, Azure Service Bus, and AmazonSqs. MassTransit provides a framework that makes it easy to send and publish messages as well as receiving them. If you’ve ever had to incorporate a messaging system such as RabbitMQ or Azure Service Bus, you may find yourself, like me, writing wrappers or abstractions around it....

October 25, 2019

How to save time writing unit and integration tests with AutoFixture

Writing Unit and integration tests are generally composed of setting up relevant test data, carrying the actual execution of the test, and finally making assertions. All this can be summarised as the AAA syntax. That is, Arrange, Act, and Assert. With AutoFixture, it can significantly save you time by taking away the tedious part of stubbing and arranging test data. The best way to describe this is to show a traditional test example followed by how it can be replaced with AutoFixture....

September 5, 2019

A Step by Step Guide on How to Host and Deploy an ASP NET Core app with SSL using Let's Encrypt, Traefik and Docker - Take 2

In this post I describe how to deploy an ASP.NET Core app that has been dockerized and host it on a Linux machine with SSL enabled for free. This is all possible using Traefik, a reverse proxy and load balancer and its integration with Let’s Encrypt. On Reflection In my previous post, whilst it still holds true, I had to break it down into 3 blog posts. It was rather long....

April 16, 2019

How to Automatically Backup a Self-Hosted Ghost Blog and Upload to AWS S3

If you have a Ghost blog like myself, self-hosted, and you’re trying to find out how to backup your blog. Well, I might be able to help. Having done some Googling and finding out various approaches I thought I should share and outline the approach I took. Prerequisites A self-hosted Ghost blog on Linux using MySQL. Familiarity with Linux and basic scripting with Bash. Familiarity of Crontab. Not a must, as I will provide a quick intro guide....

April 5, 2019

How to Encrypt SQL Server using TDE on Docker

Summary In my previous post, how to install and host SQL Server on Linux , I described how to install SQL Server using Docker on Linux with just a Docker Compose file. In this post, I explore things a bit further by turning on transparent data encryption (TDE) which addresses how to encrypt SQL at Rest. A brief intro to Transparent Data Encryption (TDE) Transparent Data Encryption (TDE) in SQL Server is a method where it is able to apply encryption at the file level....

March 26, 2019

How to install and host SQL Server on Linux with Docker for 10 dollars a month

As I’m learning more about Docker, the more I’m starting to love the versility of it. In this post, I will walk through how to launch SQL Server 2017 on a Linux machine using Docker where I’ll be hosting it on DigitalOcean. It’s worth mentioning that Sql Server 2017 does have some pre-requisites: Minimum of 2 GB of disk space. Minimum of 2 GB of RAM. Now, with this mind, the cheapest DigitalOcean droplet that has 2GB of RAM comes in at $10 a month, so thats what I will be using....

March 21, 2019