Serverless Python Application on Google Cloud
Learn to Build & Push a Python Web Application using Docker, Cloud Build & Cloud Run on the Google Cloud Platform
Build a Serverless Python Application by using a Docker Container and Google Cloud Run.
Serverless allows us to focus on our code and deploy more. What’s better, our serverless applications only cost us money when they’re used.
Docker Containers make it easy to create our own isolated environment on the operating system level. This is exactly what we need in so many applications.
In this series, we’ll be deploying a Serverless Container Application on Google Cloud. In our case, we’ll be using Python and FastAPI to deploy a REST API service. Using Containers give us the control we need to setup our environment and distribute to nearly any service that can run a Docker container.
Serverless web applications don’t mean no servers, they just mean that the server is handled for you so your app can scale as large as it needs to meet incredible demand or scale to 0 if there’s no demand. Container-based serverless apps are made possible by open-source technologies Kubernetes and Knative and managed for us by Google Cloud. Google developed Kubernetes to manage (orchestrate) containers. Luckily for us, we don’t have to worry about Kubernetes at all, we just have to worry about our application’s code and google handles the rest.
Serverless apps using containers on Google Cloud is seriously amazing. Let’s see why.