Using Azure Container Instances to measure performance of a website from multiple locations

February 10, 2019 • 14 minutes read

Measuring the performance of a website from multiple locations around the world is crucial with the current global scale of the internet. In most cases, your visitors are not only based in your home country but from all other countries too. From Canada to Australia, from Chile to Russia, your website is being visited by more people than you think. There are a number of paid services that allow you to constantly monitor your website performance from multiple locations around the world. But maybe you're a geek and you want to do it yourself?

Using Azure Blob Storage as a cache backend for Go acme/autocert

December 21, 2018 • 3 minutes read

By default, acme/autocert stores provisioned certificates on local disk for long-term caching. What happens is that the next time an user visits the same page, this package will fetch the certificate from the local disk instead of provisioning a new one. But what if your service is deployed across multiple machines? How do you ensure that all services are using the same cache? Come along and see how to solve this problem.

How we reduced our initial JS/CSS size by 67%

November 26, 2018 • 10 minutes read

We have been working on reducing the amount of bytes that we send to all Fider users. Being a web application built with React, we have focused on JS and CSS. On this post we share our learnings, some concepts and suggestions on how you can do the same with your web application.

How to retry when React lazy fails

November 16, 2018 • 2 minutes read

React 16.6 has been released and it's now easier than ever to do code split within our React applications by using the lazy function. After a few days monitoring a production application that is using lazy, I noticed a couple of client-side errors when downloading asynchronous modules. Learn how to mitigate this.

Free and Automated SSL/TLS Certificates with Go

November 8, 2017 • 7 minutes read

HTTPS has become a must nowadays. Not only for its security purpose, but also because search engines like Google are giving better rank to websites that run on a secure protocol over those using plain HTTP. It's 2017 and gone are the days that we could use the price as an excuse to not have HTTPS our our websites. Learn here how to generate SSL/TLS Certificates fully automated and free on Go web applications.

Session per Request pattern in Go

June 20, 2017 • 11 minutes read

There is a particular pattern that is very common in C# and Java, but is hard to find any mentions about in the Go community. The pattern is called Session per Request and is particularly useful to decouple business components from database transaction management. This post will drive you through what it is, how to implement, pros/cons and some examples written in Go.

Server side cache with Go

March 18, 2017 • 9 minutes read

Go is fast and everyone knows that. But how can we make it ever faster when running web applications on it? On this post I'll try to cover how can we achieve an even better response time for web applications using server side cache, because you know, performance IS a feature and I don't know anyone who enjoys spinning wheels.

Packages and vendoring in Go

February 23, 2017 • 10 minutes read

On the last post of this series we finished a simple, but fully working web app written in Go using only the standard library. During this post you’ll learn how package management works in Go by adding a very famous third-party package.

Your very first web app using Go

February 4, 2017 • 5 minutes read

Today I’m starting a new blog series on how to build your first web application using Go. I’ll do it by following a baby steps approach, so you can expect a long blog series covering everything you need (or should) do/use to build a web application, like Go tools, GOPATH, test, mock, vendoring, database and, of course, hosting in the cloud.

See the archive for more posts.