A closer look to Google Cloud Platform

A closer look to Google Cloud Platform

February 16, 2025

Google Cloud Platform

Google has one of the important cloud out there!

If you understand these, you need to know that there are similar alternatives in other clouds.

Just with the service having a different name.

Data Analytics with GCP

Bigtable: While Bigtable is a distributed NoSQL database good for very high volumes of data, it’s not a relational database and doesn’t offer the same level of transactional consistency as Cloud Spanner.

Cloud SQL: Cloud SQL is a relational database service, but it’s not globally distributed in the same way as Cloud Spanner, and it might not be the best choice for applications requiring very high scalability and availability across multiple regions.

BigQuery: BigQuery is a data warehouse designed for analytics and business intelligence, not for transactional workloads or CRUD operations. It’s used for analyzing large datasets, not for serving real-time application requests.

GCS

Google Cloud Storage

The correct sequence of the data storage hierarchy is:

Tables -> File storage -> Block storage

Tables: At the highest level, you have tables in a database. These tables organize data in a structured format with rows and columns.

File storage: Tables are often stored as files on a file system. These files can be organized in various ways depending on the database system.

Block storage: File systems themselves are built on top of block storage. Block storage is the most basic level, where data is stored in raw blocks on physical storage devices (hard drives, SSDs, etc.).

⚠️
Tables are a structured view of data, which are typically stored as files, and those files reside on block storage.

Big Query

Simply speaking, BQ is just SQL.

But its actually much more than an interface to write your SQL queries.

Big Table

Bigtable is highly consistent for multi-row updates: TRUE. Bigtable is designed for low-latency, high-throughput operations and supports atomic row-level mutations, ensuring consistency even with multiple updates.

ℹ️
Retirements

Bigtable has lesser administrative overhead: TRUE. As a fully managed NoSQL database service, Bigtable handles infrastructure management, including scaling, replication, and failover, reducing administrative overhead.

Bigtable is highly scalable: TRUE. Bigtable is designed to scale massively to handle petabytes of data and massive read/write throughput, making it suitable for demanding applications.

Google Cloud SQL

Allows the end user to enable automatic backup of data: TRUE. Cloud SQL provides the functionality for users to configure and enable automatic backups of their databases.

Cloud SQL enables bug fixing to improve performance: TRUE. Google, as the provider of Cloud SQL, continuously works on bug fixes and performance improvements for the underlying infrastructure and software.

Enable high availability fail over replica: TRUE. Cloud SQL supports high availability configurations with failover replicas to minimize downtime in case of an instance failure.

Cloud Spanner

Consistent Schema: Cloud Spanner enforces a consistent schema across all of its distributed nodes. This means that all reads will see the same schema, and you won’t encounter inconsistencies where different parts of your database have different structures. Schema changes are carefully managed to ensure consistency.

Automatic Replication: Cloud Spanner automatically replicates your data across multiple zones (and optionally, multiple regions) for high availability and fault tolerance. You don’t have to manually configure replication. Spanner handles the distribution and synchronization of data behind the scenes. This ensures that your database remains available even if some zones experience outages.

Transaction Processing: Cloud Spanner is specifically designed for high-volume transaction processing, making it suitable for applications with demanding transactional workloads like those in the retail industry.

Distributed Relational Database: Cloud Spanner is a globally distributed, scalable, and strongly consistent database. It combines the benefits of a relational database (structure, ACID properties) with the scalability of a distributed system.

CRUD Operations: Cloud Spanner excels at handling CRUD (Create, Read, Update, Delete) operations, which are fundamental to most application’s data management needs.

Compute Engine

If you are into linux, CLI and so on, probably this is the service you have heard of.

Sometime ago, I used GCP CE free tier to tinker with their VMs.

GCE Costs 📌
Google Compute Engine charges are based on Compute Instance: This is fundamental. You are charged for the virtual machines (instances) you use, based on their type, size, and how long they run. Google Compute Engine charges are based on Storage use: You are charged for the storage you use for your virtual machine disks, snapshots, and other data. Google Compute Engine charges are based on Network use: Network egress (data leaving your instances) is generally charged. Ingress (data coming in) is usually free, but there might be charges for specific services or configurations.

Conclusions

Other Clouds vs GCP

Cloud Comparison

GCP CE vs SBCs

Before going into the cloud, I got familiar with linux thanks to a raspberry Pi 4.

But there are other single board computers out there, so far I tried:

  1. Raspberry Pi 4 2/4GB
  2. Orange pi 5 8GB

If you are wondering if you need a Pi or a MiniPC, you can have a look to this.

Most SBCs (not all) are ARM based CPUs and we will be seeing more and more ARM adoption on cloud providers.

GCP CE vs Mini PCs

Not so long ago I was lucky to try the following mini PCs:

  1. BMax B4
  2. Asrock x300
  3. Firebat AK2 Plus

Mini PCs tend to have x86 CPU architecture.

They tend to behave better if you plan to reproduce high resolution video, but in general, are less efficient as per compute power / Watt.