Operation
Blockchain solutions on Google Cloud
Blockchain solutions on GCP?
When building solutions, developers channel resources to focus on workload distribution, agility, and security. Google Cloud Platform (GCP) ensures this is easily achievable through offerings such as relational databases, data warehouses, virtual machine instances, zero-trust security, etc. Blockchain, which has experienced exponential growth over the past decade, requires GCP services to cope with the resource overloads resulting from this growth. The seamless integration between blockchain and GCP has enabled the development and execution of both standalone and hybrid blockchain/GCP solutions. Which services on GCP can be leveraged to realise this? We discuss them below.
Which GCP services can be used to implement a blockchain solution?
BigQuery can host public datasets for other cryptocurrencies and provide the variables that determine the evaluation of blockchain smart contracts. BigQuery is GCP's enterprise data warehouse for data ingestion, storage, analysis, and visualisation. It is fully managed by Google and can analyse up to petabytes of data. Blockchain uses immutable smart contracts to govern transactions within the platform, but lacks reference data to determine how these contracts are evaluated. This complex operation can then be delegated to BigQuery. Using the ANSI-compliant standard SQL dialect, the ingested data is analysed to provide these variables. If no ingested data is present, BigQuery integrates with Chainlinks (Oracle) to trigger the execution of these smart contracts. Consequently, blockchain developers can build blockchain apps using a microservices architecture. A good example of how BigQuery can achieve this is in determining gas prices to successfully process transactions on the Ethereum blockchain.
The ideal candidate for developing blockchain apps at scale is App Engine , as it is well suited for applications built using a microservices architecture. It is a Platform-as-a-Service (PaaS) that enables developers to simply deploy their code and leave the rest of the work to the system. For blockchain solutions that become successful, this PaaS automatically spins up instances to support growth. It is relatively cost-effective and highly scalable. A web service for querying blockchain data from BigQuery can be built using the App Engine standard environment. This retrieval can be restricted to parameterised queries (not arbitrary data requests) such as gas prices for specific block numbers.
The infrastructure supporting blockchain solutions can be run on Compute Engine. This is an Infrastructure-as-a-Service (IaaS) that provides high-performance virtual machines running in Google's data centres. General-purpose machines are recommended for blockchain apps, but there is the option to custom-build your virtual machine instance. Unlike App Engine, as the application continues to grow, you must manually provision more virtual machine instances to support it. This would be very practical for supporting high-energy blockchain processes, such as cryptocurrency mining.
Cloud Spanner and Cloud SQL can form the database layer for blockchain apps that store large amounts of data and serve it on demand. Their cost-efficiency and near-100% availability make them ideal candidates for building solutions such as blockchain explorers. The Ethereum blockchain explorer was built on Cloud Spanner.
In addition to the data security protocols available across GCP databases (BigQuery, Spanner, and SQL), Google Cloud Identity-Aware Proxy (IAP) has the potential to bolster the security of developed blockchain solutions using a zero-trust model. Discussions are currently underway regarding how to integrate this into blockchain back-office apps.
So, can blockchain solutions be implemented on GCP? Absolutely. GCP provides a range of solutions such as Compute Engine, App Engine, BigQuery, GCloud Spanner, GCloud SQL, Cloud Security, and others that can help you achieve this as explained above.



