Building a chat server in Rust

March 21, 2023

In this blog post, we’ll explore how to develop a simple chat server in Rust. We’ll be using Rust’s standard library and the Tokio library to build an asynchronous chat server that allows multiple users to join and chat in real-time. Let’s get started! ... Read more

Comment Moderation with AI

March 25, 2019

One of the most mundane tasks that comes with writing a blog is moderating the comments to make sure your not being targetted with comment spam or abusive content. Most of the comment system providers have mechanisms in place to deal with these issues, but I thought it would be interesting to try and develop my own with the aid of cloud based AI. ... Read more

Deploy Azure Functions from GitHub

March 19, 2019

I recently needed to deploy an Azure Functions application that was stored in GitHub. I could have cloned the repository, built the solution in Visual Studio, then deployed using Visual Studio’s deployment tools, but I really wanted a quicker way. Luckily Azure Functions allow automated deployment from a number of sources, including GitHub. ... Read more

Once in a Lifetime

October 12, 2018

After spending a bit of time getting to know Rust, I think I’ve finally come to an understanding with the borrow checker, at least in terms of ownership and borrowing. The one thing I still have trouble getting my head around is lifetimes. I’ve written this post as my attempt to internalise a proper understanding of lifetimes. ... Read more

Processing Device Messages from Azure IoT Hub

September 20, 2018

This post shows how to take messages sent by IoT devices and process them using other Azure services. This is a follow up to my earlier post Sending Messages to Azure IoT Hub, and builds on the code and services created in that post. If you haven’t read it, please go back and work through the examples before continuing. ... Read more

Working with Go Modules

July 26, 2018

In my previous post on Sending Messages to the Azure IoT Hub, I promised that my follow-up post would continue with that example and show how to route device messages to other Azure services. However, as Go 1.11 beta 2 has just been released, with support for modules, I thought I’d put together a short post on how this changes my Go workflow. ... Read more

Sending Messages to Azure IoT Hub

July 21, 2018

Although I use many of the Azure services as part of my day job as a web developer, one I’ve never had the chance to use is their Internet of Things (IoT) offering. This post seeks to remedy that by creating a simulated IoT device then using it to send telemetry data to the Azure IoT hub. ... Read more

Running Go in Azure with Container Instances

August 10, 2017

Go is not an officially supported language in Azure the way it is on Google Cloud Platform. You can sort of run Go code as part of a web app by installing the “Go Lang for Azure Websites” extension, but this really only allows you to run your code as part of the IIS pipeline, rather than as a standalone server. The best way to run an actual Go server in Azure is via a container. ... Read more

Copyright (c) 2018, all rights reserved.