Posts

Showing posts with the label google cloud function

Deploying the Go Function to Google Cloud Function

Image
Introduction Previously, I wrote a guide on deploying a NodeJS TypeScript Function to Google Cloud Functions (GCF) and provided some basic information about GCF , which you can check out here. In this article, I'll walk you through a simple way to deploy a Go Function to GCF . Prerequisites Before we dive in, make sure you: Have a Google Cloud account and have enabled Cloud Functions . Have a basic understanding of Go . You can refer to this guide to set up the Go project used in this article. Implement Cloud Function After setting up your Go project , rename the module in the ` go.mod ` file to follow this format: ` example.com/moduleName `. This is required to deploy a Go Function . Next, update the content of the ` main.go ` file as follows: package packageName import ( "encoding/json" "fmt" "net/http" "strings" "time" ) // get method func GoCloudFunction1 ( w http . ResponseWriter , r * http . Request ) { f...

Google Cloud Platform Practice Series

Image
Introduction Google Cloud Platform (GCP) is a suite of cloud computing services provided by Google. It allows you to build, deploy, and scale applications, websites, and services on the same infrastructure that Google uses internally for its end-user products like Google Search, Gmail, and YouTube. Key Features of GCP Compute Services: Includes virtual machines (VMs) with Google Compute Engine, serverless computing with Google Cloud Functions, and container orchestration with Google Kubernetes Engine (GKE). Storage and Databases: Offers various storage options like Google Cloud Storage for object storage, Google Cloud SQL for managed relational databases, and Google Bigtable for NoSQL databases. Networking: Provides a global network infrastructure with services like Virtual Private Cloud (VPC), Cloud Load Balancing, and Cloud CDN for content delivery. Big Data and Machine Learning: Includes tools like BigQuery for data warehousing, Dataflow for stream and batch data processing, and AI ...