Google Cloud Platform - Compute Services
Last Updated :
24 Mar, 2025
To create and run a Virtual Machine in the Google Cloud Platform, one needs Compute Services to perform certain operations. Google Cloud Platform’s Compute Engine provides a variety of computing options according to users’ needs. Whether you’re looking for virtual machines, serverless or a managed platform, there’s something for you. Some of the most popular are Compute Engine, App Engine, Kubernetes Engine (GKE), Cloud Functions and Cloud Run.
Types of Google Cloud Compute Services
The following are some of the important Google Cloud Compute Services:
1. Google Compute Engine(GCE)
Compute Engine gives you virtual machines on Google’s infrastructure. As an Infrastructure as a Service (IaaS), it’s for those who want full control over their system, including the operating system, storage, and networking.
Best For:
- Deep customization, such as a custom operating system kernel.
- High resource usage.
- 1:1 container to virtual machine mapping.
- Migrating on-premise systems to the cloud.
2. Google App Engine(GAE)
App Engine is a Platform as a Service (PaaS) for scalable web applications and IoT backends. It adjusts resources based on the application’s traffic so you can build and manage apps without worrying about the infrastructure.
Best For:
- Stateless apps.
- Building CRUD heavy apps or APIs quickly.
- Apps composed of a few services that benefit from auto-scaling.
- Projects that need a fast development process with built-in APIs.
3. Google Kubernetes Engine (GKE)
If you’re using containers, Google Kubernetes Engine (GKE) is a great option. It’s based on Kubernetes, Google’s open source container orchestration tool and makes it easier to deploy and manage containerized workloads in the cloud.
Best For:
- Already containerized or can be containerized apps.
- Hybrid or multi-cloud.
- Stateful and stateless microservices.
- Strong CI/CD pipelines.
4. Cloud Functions
Cloud Functions is a serverless compute solution for event-driven tasks. With it, you can deploy small pieces of code that respond to specific triggers, without worrying about managing servers or runtime environments.
Best For:
- Trigger-based workflows, such as reacting to log events.
- Simple, lightweight APIs.
- Quick data transformations or ETL processes.
5. Cloud Run
Cloud Run is a flexible, managed platform for running stateless containers. It combines the best of serverless architecture with containerized workloads, allowing you to deploy applications effortlessly.
Best For:
- Stateless applications in containers.
- Event-driven systems.
- Apps with specific system and language dependencies that don’t fit other serverless models.
Choosing the right compute service from Google Cloud depends on your application’s needs. For example, if you need granular control, Compute Engine is a great choice. If you want a fully managed, scalable solution, App Engine or Cloud Run might be a better fit. With these options, you can build, deploy, and scale applications with confidence, no matter the size or complexity.
Additional GCP Services Related to Compute
To create and run a Virtual Machine in the Google Cloud Platform, one needs Compute Services to perform certain operations. Google Cloud Platform's Compute Engine provides a variety of computing options according to users' needs. Some of them are discussed below along with their use cases:
1. Cloud Dataproc
- Cloud Dataproc is a managed Apache Hadoop-based data processing service, which is an ideal solution for Big Data analytics.
- Cloud Dataproc can process and analyze Apache Hadoop-based workloads using clusters of virtual machines.
2. Cloud Functions
- The Google Cloud Platform offers fully managed code execution environments called “Cloud Functions” that developers can use to build event-driven applications in the cloud without having to manage infrastructure or write boilerplate code.
- With just a few lines of JavaScript, you can write small pieces of code that respond to events and do things like send an SMS notification, execute a database query, or generate thumbnails from uploaded images.
3. Cloud Storage API
- The Google Cloud Storage API is a RESTful API that allows developers and partners to store and retrieve data on the Google Cloud Platform.
4. Cloud Pub/Sub
- The Cloud Pub/Sub API is a publish/subscribe messaging system that enables developers to build a global and distributed real-time messaging application in the cloud.
- This API provides a simple, stateless, and scalable model for building applications that need to send real-time messages or updates.
- It allows you to subscribe (create topics) as well as "publish" messages (create topics) on these topics.
- The message payloads are decoded from JSON records, then serialized into JSON format for storage and delivery via an HTTP request.
5. Cloud Bigtable
- The Google Cloud Bigtable API provides programmatic access to Google’s global, distributed, persistent multi-model database.
- This API allows you to read and write data in Cloud Bigtable, create and run administrative and user-defined actions on the tables, as well as delete data from the tables.
6. Cloud Spanner
- The Cloud Spanner API allows developers to access the Cloud Spanner-managed database service using RESTful calls.
- A globally distributed database for horizontal scaling of SQL queries is readily available for applications that need a relational database and high availability without having to manage any infrastructure or be an expert in SQL.
7. Cloud Dataflow
- The Cloud Dataflow API is a fully managed service for data processing pipelines, including both batch and streaming data.
- Apps that process large amounts of data can run as reliably and efficiently as those processing small amounts of data, thanks to the scalability and high availability provided by Google infrastructure.
8. Cloud Tasks
- The Cloud Tasks API is a fully managed task execution service for developers who want their applications to respond quickly to user interactions by executing lightweight code in the cloud.
- Developers can use this API to run tasks on-demand or schedule them to run at specific times or dates.
9. Cloud Pub/Sub
- The Cloud Pub/Sub API is a publish/subscribe messaging system that enables developers to build a global and distributed real-time messaging application in the cloud. This API provides a simple, stateless, and scalable model for building applications that need to send real-time messages or updates. It allows you to subscribe (create topics) as well as "publish" messages (create topics) on these topics.
- The message payloads are decoded from JSON records, then serialized into JSON format for storage and delivery via an HTTP request.
10. Cloud Storage
- The Google Cloud Storage APIs provide programmatic access to Google’s globally distributed object storage service. Using the APIs, developers can store and retrieve objects from Google Cloud Storage buckets, as well as query metadata about those objects.
- It is a highly available and scalable service that stores object data in a bucket, defined by the app developer.
11. Cloud Datastore
- The Google Cloud Datastore API is a managed NoSQL database service that provides global, distributed storage for your application’s data.
- The API includes full CRUD support for Entities, and supports indexing and searching over your Entities using built-in indexes.
- The API supports multiple language bindings including Java, PHP, Python, and Ruby.
GCP Compute Service Pricing
Google Cloud Platform (GCP) offers flexible and cost-effective pricing for its compute services, allowing businesses to pay based on usage. The pricing model varies depending on instance type, workload requirements, and commitment plans.
GCP Compute Services Pricing Overview
Compute Service | Pricing Model | Free Tier | Cost-Saving Options |
---|
Google Compute Engine (GCE) | Pay-per-use (per second) | No | Preemptible VMs (80% cheaper), Committed Use Discounts (up to 57%), Sustained Use Discounts |
---|
Google Kubernetes Engine (GKE) | Pay-as-you-go | No | Node auto-provisioning, Spot VMs, No cluster fee in Standard mode |
---|
Google App Engine (GAE) | Pay-per-instance usage | 28 instance hours/day | Flexible pricing for standard and flexible environments |
---|
Cloud Functions | Pay for execution time and memory usage | 2 million requests/month | Optimize function duration and trigger usage |
---|
Cloud Run | Billed per request and execution time | 50 free vCPU-seconds & 50,000 requests/month | Scale-to-zero feature reduces idle costs |
---|
Cost Optimization Tips for GCP Compute Services
For the GCP Compute Services Cost Optimization you can use the following ways:
- Use Preemptible VMs for short-lived or non-critical workloads to save up to 80%.
- Enable Auto-scaling to dynamically adjust resources based on demand.
- Leverage Committed Use Discounts (CUDs) to lower long-term costs.
- Monitor usage via GCP Billing Reports to control unexpected expenses.
Best Practices For GCP Compute Services
The following are the best practices we can follow for GCP Compute Services:
1. Security Optimization
- Enable encryption and use IAM roles to control access.
- Secure workloads with Google Cloud Firewalls and VPC Service Controls.
2. Cost Optimization
- Use preemptible VMs for non-critical workloads to reduce costs.
- Leverage auto-scaling to optimize resources.
- Apply committed-use discounts for sustained savings.
3. Performance Optimization
- Optimize compute instances based on workload demands.
- Use load balancers to distribute traffic efficiently.
- Implement caching and CDNs for fast data retrieval.
Conclusion
Google Cloud offers a range of compute services that can handle everything from simple serverless functions to complex, highly customizable virtual machines. Whether you're building a small app or migrating a large enterprise workload, GCP’s compute options are flexible and powerful enough to meet your needs.
Similar Reads
Google Cloud Platform Tutorial Google Cloud Platform (GCP) is a set of cloud services provided by Google, built on the same technology that powers Google services like Search, Gmail, YouTube, Google Docs, and Google Drive. Many companies prefer GCP because it can be up to 20% cheaper for storing data and databases compared to oth
8 min read
Introduction
What is Google Cloud Platform (GCP)?Google Cloud Platform (GCP) is a cloud computing service by Google that helps businesses, developers, and enterprises run applications, store data, and manage workloads on a secure, scalable, and high-performance infrastructure. Whether you're building a website, handling large datasets, or running
15+ min read
Introduction to Google Cloud PlatformGoogle Cloud Platform (GCP) is an initiative by Google to provide cloud computing services to customers. These services run on the same infrastructure and platform on which Google services such as Gmail, YouTube, etc run. GCP was launched on April 7, 2008, and the complete set of services and the pl
5 min read
Cloud Storage in Google Cloud Platform (GCP)Google Cloud Storage is a secure, scalable, and high-performance storage solution that lets businesses store, manage, and retrieve data effortlessly. Itâs designed for big data analytics, media storage, backups, and disaster recovery, making it a go-to option for enterprises looking for cost-effecti
8 min read
Features of Google Cloud PlatformGoogle Cloud Platform (GCP) is Googleâs cloud computing service that helps businesses build, deploy, and scale applications on a secure, global infrastructure. It offers powerful features like virtual machines, cloud storage, databases, AI, machine learning, and big data tools. GCP reduces infrastru
5 min read
Google Cloud Platform - Introduction to QwiklabsQwiklabs provides lab learning environments that help developers and IT professionals get hands-on experience working with leading cloud platforms and software. Qwiklabs provides temporary credentials to Google Cloud Platform and Amazon Web Services so that you can get a real-life experience by work
3 min read
Compute Services
Storage and Database Services
Networking Services
Security Services
Google Cloud Platform SecurityCloud computing is now the backbone of apps, services, and businesses we use dailyâGmail and Google Docs to large enterprise systems. At its core is Google Cloud Platform (GCP), a robust cloud service used by startups, global enterprises, and governments. Great power, however, brings great responsib
15+ min read
Access Control for Disaster Avoidance in Google Cloud IoT Core using IAM PolicyInternet of Things(IoT) is today's one of the most used technologies to establish the network between physical devices. In the case of the Cloud IoT, the cloud technology has added extra value by providing massive support to the modern IoT automation to make it more secure, managed, scalable and so
4 min read
Data Integration and Analytics Services
Introduction to DatabricksDatabricks is a cloud-based platform for managing and analyzing large datasets using the Apache Spark open-source big data processing engine. It offers a unified workspace for data scientists, engineers, and business analysts to collaborate, develop, and deploy data-driven applications. Databricks i
5 min read
Google Cloud Platform - Introduction to BigQueryGoogle BigQuery is a fully managed, serverless data warehouse designed to help businesses store and analyze large volumes of data quickly and efficiently. Whether you're dealing with massive datasets or real-time analytics, BigQuery allows you to run complex queries and get insights in seconds witho
8 min read
Google Cloud Platform - Introduction to BigQuery SandboxBigQuery sandbox gives you free access to try out BigQuery and use the UI without providing a credit card or using a billing account. It's a quick way to get started and try out some BigQuery concepts. To get started, click on this link and follow along with the rest of the article. If you're a new
2 min read
Google Cloud Platform - Tables in BigQueryTables in BigQuery or any database for that matter is used to store data in a structured manner. In this article, we will explore the concepts of the three types of table available in BigQuery: Temporary TablesPermanent TablesViews (Virtual Tables)Temporary Tables: Just as BigQuery automatically sav
3 min read
Google Cloud Platform- BigQuery(Running Queries, advantage and disadvantage)In this article, we're going to look into how to run a query in BigQuery. Running queries is one of the most fundamental parts of discovering insights from your data. So let's ask an outrageous question to BigQuery here and ask it "what is the best jersey number you should choose in order to improve
7 min read
Google Cloud Platform - User Defined Functions in BigQuerySQL has many built-in functions for performing calculations on data. But sometimes, your systems might need to handle data, such as string or date values, uniquely. User-defined functions are an efficient way to have these custom calculations at your fingertips when analyzing data. In this article,
4 min read
Google Cloud Platform - Working with External Data in BigQueryIn BigQuery it's also possible to query data stored externally or outside BigQuery. In this article, we're diving into these external data sources. It's possible to leave your data in any place and use BigQuery as your query engine. These sources are called external or federated data sources. This f
4 min read
Google Cloud Platform - Loading Data to BigQueryIn this article, we will look into how to load and analyze your own data in BigQuery. As it is better to understand the concept with examples, we will be answering the age-old question "Which is better, cats or dogs?" If you want to analyze data that are not already available as part of the public d
5 min read
Google Cloud Platform - Implementing Authorized View in BigQueryIn this article, we will look into how you can implement an Authorized view in BigQuery.You can follow along in your own BigQuery sandbox, which you can set up for free. For this, we're using two sandboxes in order to represent the perspectives of the data admin. As a data admin follow the below ste
3 min read
Google Cloud Platform - Query History vs Saved Query vs Shared Query in BigQueryThe process of writing and running SQL queries doesn't always follow a straight line. A particular query can be in constant iteration while you use it to explore and clean up your data, or as you fine-tune it to optimize its performance. In this article, we will highlight the ways to save and share
3 min read
Google Cloud Platform - Managing Access using IAM in BigQueryWhile big data brings us valuable insights and opportunities, it also brings the responsibility to ensure that data is secure, meaning that only the right data is shared with the right people. In this article, we're talking about how to use Google Cloud's Identity and Access Management Service to de
5 min read
Google Cloud Platform - Data Visualization in BigQueryWhether you're exploring a data set for the first time or summarizing the findings of your analysis to an audience, you can use data visualization to make large, complex data sets easier to understand and internalize. In this article, we will look into visualizing your BigQuery data. Data visualizat
4 min read
Google Cloud Platform - Data Security in BigQueryOne of the benefits of a data warehouse, like BigQuery, is the improved simplicity and speed of bringing data to your analysts and decision-makers. Data needs to vary across a company based on organizational function, geography, and more, so it's important to be able to provide customized access to
3 min read
Management tools and Monitoring Services
GCP DevOps
Miscellaneous
Difference Between Google Cloud and AWSGoogle Cloud Platform: It is a suite of cloud computing services developed by Google and launched publicly in 2008. Google Cloud Platform provides IaaS, PaaS, and serverless computing environments. A comparatively new Google Cloud Platform has all the tools and services required by developers and pr
3 min read
How To Share File From Host Machine(Windows) To Guest Machine(Linux)We need to have Ubuntu installed in our Virtual Box for the purpose of this experiment. The host machine is Windows 10 in the following experiment. Transfer File From Host Machine(Windows) To Guest Machine(Linux) 1. Method 1: Installing SSH on Ubuntu Terminal and allowing Firewall blockage Open Term
4 min read
Deployment Models in OpenStackPre-requisite: OpenStack OpenStack has a set of software tools for providing various cloud computing platforms for public and private clouds. OpenStack is managed by the OpenStack Foundation, a non-profit that oversees both development and community-building around that project. OpenStack is the fut
4 min read
How to Build G Suite Add-ons with Google Apps script?G Suite is a Google service that provides access to a core set of applications like Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Meet, etc. Add-ons means the extension given to the pre-existing G Suite products (mentioned above). Developers can add many extra features to such products. Add-o
3 min read
Google Cloud Platform - Introduction to PhoneInfoga an OSINT Reconnaissance ToolPhoneInfoga is one of the most advanced tools which one can use to scan phone numbers and get detailed information about them using only free resources. The motive is to gather basic information such as country, area, line, and carrier on any international phone numbers with very good accuracy. Then
3 min read
Generating API Keys For Using Any Google APIsLike most software giants, Google provides its enthusiastic developers community with its APIs, SDKs and Services. These APIs from Google are hosted on their cloud platform, popularly known as Google Cloud Platform (GCP). Software such as Google Maps, YouTube, Gmail, etc., use the same APIs and now
3 min read
Google Cloud Platform - Understanding Federated Learning on CloudCrowdsourcing has a wide range of benefits. Whether it's restaurant reviews that help us find a perfect place for dinner or crowdfunding to bring our favorite TV show back to life, these distributed contributions combined to make some super useful tools. We can also use that same concept to build be
3 min read