In this blog, I will show you how to use WebSockets support to build a fleet of serverless containers that make up a chatroom server that can scale a high number of concurrent connections (250,000 clients).
In this blog, I will show you how to use WebSockets support to build a fleet of serverless containers that make up a chatroom server that can scale a high number of concurrent connections (250,000 clients).
I’ve published documentation on best pratices for running WebSockets applications such as chatrooms or game servers on Cloud Run’s stateless environment.
Cloud Run now supports WebSockets (and gRPC streams!) so I wrote a best practices guide for you to architect your streaming apps properly in a serverless world.https://t.co/MMJNhsbUVS pic.twitter.com/tu7msYtH0Z
— Ahmet Alp Balkan (@ahmetb) February 19, 2021
Last year, I wrote a tutorial on deploying a serverless application to all Google Cloud regions, and route your users to the closer region using a load balancer with anycast IP. (I’ve since moved that article into our documentation). It was a 13+ step tutorial to get it working.
Naturally, I scratched the itch and released a Terraform module that makes this much easier. I posted it on Twitter, and it got over 200 likes, so I decided to write about how this works. In this article I’ll show you how you can automate deploying to “all regions”much easier using this new Terraform module. This repository contains all the code and examples I’ll talk here. Read More →
In this article, I’ll explain how to build OCI container images without using
Docker by building the layers and image manifests programmatically using the
go-containerregistry module. As an example, I’ll build a container image
by adding some static website content on top of the
nginx
image and push it to a registry like
gcr.io
using a Go program.
Read More →
I wrote an article on GCP blog announcing WebSockets, HTTP/2 and bi-directional
streaming support for Cloud Run.
I’ve published an article on the Google Cloud Blog about the leader election and
distributed consensus concepts, where they’re useful and why they are
non-trivial problems. The artice shows you how to implement your own distributed
lock easily by using Google Cloud Storage and the consistency guarantees it
provides.
After my previous
article
showing how to build a Google Cloud HTTPS Load Balancer step-by-step from ground
up, this time I’m announcing a new official GCP Terraform module that I’ve
developed to abstract this away from developers. This module works with Cloud
Run, Cloud Functions (GCF) and App Engine (GAE) services.
I’ve published an article titled “Serverless load balancing with Terraform: The
hard way” on the Google Cloud blog that details building an HTTPS load balancer
with automatic TLS certs for a Cloud Run service. In doing so, I’ve realized
this experience is fairly complicated, and started preparing a new Terraform
module to make this easier.