Running a serverless Go web application

Click for: original source

Recently Google introduced the beta program for Google Cloud Run. This is a service to run stateless containers on a fully managed environment by Google. An article by Bart Fokker.

It is essentially serverless for any container, scaling your containers up and down as requests (and peaks) come and go. The benefit of using tools like Cloud Run is that it abstracts away all the infrastructure, thus you can focus more on what really matters, building your application.

The article describes in great detail:

  • Setting up – since cloud run is still in beta we need to install the beta components in the gcloud utility
  • Building the application

Includes all teh code, link to GitHUb repository and detailed explanation of each step. Deploying web applications with cloud run is very easy. It is as simple as defining a Dockerfile and publishing the image to google cloud. Seems pretty simple!

[Read More]

Tags golang programming performance web-development