Cloud Run by Google: Simple, Serverless and Scalable Greatness

by Jul 2, 2019#Cloud, #FrontPage

Printer Icon
P

How to provide the right infrastructure to a project that scales well, is robust and secure are not straightforward tasks. Google Cloud has taken significant steps in delivering solutions where the supporting infrastructure is automatically managed. One of the recent proposals is Cloud Run, where not only we take advantage of a docker containerized app but also no management of virtual machines or Kubernates engine is required. This could be a good fit for a wide range of apps since the migration effort is very low and the maintenance task of keeping the infrastructure updated could be significantly reduced

As an example, we tried Cloud Run with one of our dockers deployed images, which was running under a VM machine inside Google Cloud. On that machine we had dockers installed running three containers NGINX, LetsEncrypt, and a Tomcat server.

So first we needed to create a new service. On the Google Cloud console Cloud Run is now one section in the main menu. The first thing you will notice is that if you are already using the Container Registry, the images are automatically populated. Our Tomcat Docker image was already using port 8080, so there was no need to change anything. Then we configured the memory allocated for that app and started the service. The service started very fast and was as responsive as the Cloud VM machine. Moreover, the services are exposed as https, so no additional https configuration was required for this example.

Once the server is deployed, you have some nice tools to review your service. It shows metrics, where you can review the number of request, CPU and memory usage; revisions; and logs.  Updating with a new version is straightforward too. Once a new version of the image is uploaded, the same service can be updated. There is no need to create a new service or do any other process, and a nice console will show you the history of your service.

And finally the cost, it seems to scale well too, because it is based on the CPU usage of the services. You will probably miss the full control of your server or your command line tools to access the container itself, but if you want a truly serverless solution for your stateless service, this could be a good choice.

Photo by Goran Ivos on Unsplash

About Us: Krasamo is a mobile-first Cloud Computing and consulting company focused on the Internet-of-Things and Digital Transformation.

Click here to learn more about our cloud consulting services.

RELATED BLOG POSTS

Digital Strategy 101

Digital Strategy 101

Digital strategy consulting provides businesses with insights and direction in developing digital strategies that unlocks and sustain real value and innovation—a key to gaining a competitive advantage in today’s marketplace.

Smartphones NFC Payments Systems – More Than Just a Touch Simpler

Smartphones NFC Payments Systems – More Than Just a Touch Simpler

NFC payments systems are a safe way of transferring private data between smartphones and other devices. When used for payments, it securely establishes a phone user’s identity, verifies that the person has the necessary funds to pay for a product or service, and authorizes the transfer of those funds to the seller. For both the smartphone owner and the vendor, this is a quick, convenient, and seamless way to buy and sell goods and services. It completes a typical transaction in about half the time it takes a contactless card.

App Ideas: Discovery and Features Planning

App Ideas: Discovery and Features Planning

Discovering app ideas and app features through an iterative process that converts them into concepts and prototypes with a delightful and seamless user experience (UX).