Cloud Run by Google: Simple, Serverless and Scalable Greatness
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.
Related Blog Posts
Now more than ever before, businesses need to be a part of the mobile space. Flutter provides one path to digital transformation for a company.
Apple will release iOS 13 on September 19 2019. Learn about changes necessary to update your mobile application for iOS 13 and Xcode 11.
Kotlin has been adopted by many Android developers and companies because it offers a concise programming syntax which makes developers more comfortable writing code, prevents the common errors seen when developing in Java, and is easy to switch from iOS development given that Kotlin syntax is very similar to Swift.
SwiftUI was one of the most exiting announcements during Apple’s WWDC 2019. Learn how to apply this useful technology to your next project.
TensorFlow is a Machine Learning cross-platform that has started to be adopted widely worldwide. It was released by Google in 2015 and now TensorFlow 2.0 Alpha is available.
ARCore is Google’s platform for building Augmented Reality experiences using Android, Unity, Unreal, or iOS as development environments.
Now, you can port iPad Apps to Mac, sharing the same project and source code to deliver your app to an audience of over 100,000,000 Mac users.
The scope of machine learning with Apple is just beginning to be imagined. The number of applications has increased at a humongous rate in the last years. Nowadays, almost all activity that includes data user analysis relies in machine learning.
During the WWDC 2019 Apple revealed the new iPadOS, a specific OS to take advantage of the iPad characteristics and capabilities.
Modern machine learning methods have been around for more than 10 years, but it seems that recently there is a trend to add machine learning to a wider range of applications including medicine, agriculture, and even IoT devices.
GET IN TOUCH!
Copyright © 2019 Krasamo Inc. All rights reserved. All Trademarks are the property of their respective owners.