Ifception

If/Else and Conditional Statements in Go

In Go, we can use conditional statements to execute code based on different conditions. We can also use if, else if and if else statements to execute code provided if a condition is true or false. If/else statements are commonplace in programming, so if you’re already a seasoned programmer you won’t spend long here. But as always, we’ll take our time and make sure we understand fully what’s going on. ...

March 14, 2022 · 4 min · Will Velida
Go lang

Types in Go

So the Golang learning adventure continues! We have our developer environment setup so we’re ready to dive into more Golang code. In this post, I’ll be talking about types and variables in Go. If you’ve used other languages, you may notice as we go through this that Go has some differences in how it uses types compared to other languages. In this article, we’ll be covering: What types are available to us? Assigning values in Go Constants in Go I’ve built a very simple Go file that works with different types in Go which you can view here. Please feel free to clone it, copy/paste it and play around with it. ...

March 11, 2022 · 5 min · Will Velida
Go lang

Setting up our Go Development Environment

I’ve been wanting to learn Go for a while now. I’ve tried and failed to keep my learning consistent, so I’ve decided to force myself to keep on top of my learning through a couple of avenues: This Blog I’ve set up. This GitHub repo. In that GitHub repo, I’ll be adding content on both Golang itself and building applications with Go that use Azure. I’ll be building this repo up over time, but if you have a particular sample or scenario that you’d like me to create, please feel free to raise an issue. ...

March 10, 2022 · 6 min · Will Velida
Azure Container Apps Logo

Building and Deploying Container Images to Azure Container Apps with GitHub Actions

In a previous blog post, I talked about how we can provision an Azure Container App using Bicep and deploying our Bicep template using GitHub Actions. We’ll now turn our attention to updating the images that our Container App uses by building the new image, deploying it to Azure Container registry and then pulling the newly built image from our registry to our Container App. As part of my infrastructure deployment, I defined a container image as part of my Bicep like so: ...

February 28, 2022 · 9 min · Will Velida
Implementing Blue/Green Deployments with Azure Web Apps for Containers

Implementing Blue/Green Deployments with Azure Web Apps for Containers

Application uptime is critical for our cloud applications. Using Azure App Service slots, we can implement the Blue/Green deployment pattern to validate that new versions of our application will perform as expected in a production environment, without causing downtime to our existing version of our application. With App Service slots, we can deploy new versions of our container images to our Green slot, run tests against that slot to ensure that everything is working and then direct incoming traffic to our updated container image. ...

February 26, 2022 · 16 min · Will Velida