
Google Cloud Functions 是一个无服务器、事件驱动的托管平台,用于构建和连接云服务。这是一项以代码为中心的服务,您编写的函数可以由 HTTP 请求或任意数量的云事件触发 – 无论是在 Google Cloud 上还是在 Google Cloud 下。
在课程开始时,我将彻底解释用于构建和连接云服务的无服务器、事件驱动、托管平台的实际含义——以及它的功能。我们将介绍 Cloud Functions 的主要功能和优势 – 其中最引人注目的一项是其灵活性。我们将讨论的广泛用例证明了这一事实。然后,我们将深入挖掘以揭示是什么构成了 Cloud Function 函数,包括对不同类型的 Cloud Functions 及其组件方面的全面讨论:事件和触发器。我什至会讨论 Cloud Functions 的定价,这是每个参与相关项目的人都应该知道的。
在您完全熟悉 Cloud Functions 的整体结构后,我们将开始探索如何使用它们。我将向您展示如何设置合适的开发环境——无论您使用的是 Mac、Windows 还是 Linux 系统——并立即部署您的第一个功能。然后,我们将深入探讨编码函数的细节,特别是在 Python 中:如何为特定场景(例如使用 JSON 变量)或特定情况(例如响应来自另一个域中的应用程序的触发器)进行编码。
我将为您提供部署 Cloud Functions 所需的所有命令行代码,并完整介绍可用参数。我们还将讨论从各种来源(包括 Github 之类的存储库)部署 Cloud Functions。
Cloud Functions 可以通过多种方法触发,最常见的一种方法是使用其他 GCP 服务。我们将讨论如何处理最常依赖的服务,其中包括 Cloud Pub/Sub 和 Cloud Storage,以及一些更有针对性的服务,如 Cloud SQL 和 Stackdriver。
测试在任何应用程序开发中也很重要,Cloud Functions 也不例外。我们将研究几个相关的测试策略,同时了解如何使用 Cloud Functions 实现 CI/CD 工作流。
本课程的最后一部分真正开始深入了解许多不同的现实世界场景。这些用例包括从 Cloud SQL 检索查询数据、将四种不同的 Google Cloud 服务捆绑在一起以从图像中提取和翻译文本,以及与第三方服务集成以在世界任何地方发送短信——所有这些都由您的 Cloud 触发职能。
我真的很高兴向您展示 Cloud Functions 的所有功能以及具体的操作方法。对于越来越多的用例来说,这是一个非常可靠的解决方案,也是您云计算工具箱中的绝佳工具。
Video: .MP4, 1920×1080 30 fps | Audio: AAC, 44.1 kHz, 2ch | Duration: 5h 54m
Genre: eLearning | Language: English | Size: 2.58 GB
Google Cloud Functions is a serverless, event-driven, managed platform for building and connecting cloud services. It’s a code-centric service where the functions you write can be triggered by an HTTP request or any number of cloud events—both on and off Google Cloud.
At the start of the course, I’ll thoroughly explain what a serverless, event-driven, managed platform for building and connecting cloud services actually means—and what it’s capable of. We’ll cover Cloud Functions’ primary features and benefits – one of the most compelling of which is its flexibility. A fact attested to by the wide spectrum of use cases we’ll discuss. Then, we’ll dig a little deeper to reveal what makes a Cloud Function function, including a full discussion of the different types of Cloud Functions along with their component aspects: events and triggers. I’ll even go over the pricing of Cloud Functions, something everyone involved in related projects should be aware of.
After you’re thoroughly familiar with the overall structure of Cloud Functions, we’ll begin exploring working with them. I’ll show you how to set up a proper development environment – whether you’re on a Mac, Windows, or Linux system – and get your first function deployed right out of the gate. Then, we’ll dive into the particulars of coding functions, specifically in Python: how to code for specific scenarios, like working with JSON variables, or particular situations, such as responding to a trigger from an app in another domain.
I’ll give you all the command line code you’ll need for deploying your Cloud Functions, complete with full coverage of the available parameters. We’ll also discuss deploying Cloud Functions from a variety of sources, including repositories like Github.
Cloud Functions can be triggered through a variety of methods and one of the most common is to use another Google Cloud service. We’ll discuss how to handle those most frequently relied on, among them Cloud Pub/Sub and Cloud Storage – as well as some of the more targeted services like Cloud SQL and Stackdriver.
Testing is also critical in any app development and Cloud Functions is no different. We’ll examine several relevant testing strategies along with a look at implementing a CI/CD workflow with Cloud Functions.
The final section of the course really takes off with an in-depth look at a number of different real-world scenarios. These use cases range from retrieving queried data from Cloud SQL, tying together four different Google Cloud services to extract and translate text from images, and integrating with a third-party service to send a text message anywhere in the world – all triggered by your Cloud Functions.
I’m really excited to show you all of what Cloud Functions can do and exactly how to do it. It’s a really solid solution for an ever-increasing number of use cases and an excellent tool to have in your cloud computing tool chest.
So, come on, let’s get started with our Google Cloud Functions Deep Dive.
原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/15032.html