Skip to content

Commit 0acc0a6

Browse files
committed
WIP: Cloud Functions
1 parent cf87656 commit 0acc0a6

File tree

1 file changed

+33
-0
lines changed
  • module7-cloud-computing/r4.1-cloud-functions

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Cloud Functions
2+
3+
We now understand what is the serverless architecture, in this lesson, we will focus on the cloud functions used in the serverless architecture.
4+
5+
The objectives of this lesson are:
6+
7+
- Getting familiar with google cloud functions.
8+
- Understanding how to write a cloud function.
9+
10+
## Introduction to Cloud Functions
11+
12+
Cloud Functions are an easy way to run your code in the cloud. With Cloud Functions, there are no servers to provision, manage, patch, or update. Functions automatically scale and are highly available and fault-tolerant.Cloud Functions are great for building serverless backends, doing real-time data processing, and creating intelligent apps.
13+
14+
With Cloud Functions you write simple, single-purpose functions that are attached to events emitted from your cloud infrastructure and services. Your Cloud Function is triggered when an event being watched is fired. Your code executes in a fully managed environment. There is no need to provision any infrastructure or worry about managing any servers.
15+
16+
Cloud Functions can currently be written in Javascript, Python, or Go. In the case of Javascript, they execute in a Node.js environment on Google Cloud Platform. You can take your Cloud Function and run it in any standard Node.js runtime which makes both portability and local testing a breeze.
17+
18+
## Connect and Extend Cloud Services
19+
20+
Cloud Functions provides a connective layer of logic that lets you write code to connect and extend cloud services. Listen and respond to a file upload to Cloud Storage, a log change, or an incoming message on a Cloud Pub/Sub topic. Cloud Functions augments existing cloud services and allows you to address an increasing number of use cases with arbitrary programming logic. Cloud Functions have access to the Google Service Account credential and are thus seamlessly authenticated with the majority of Google Cloud Platform services such as Datastore, Cloud Spanner, Cloud Translation API, Cloud Vision API, as well as many others.
21+
22+
## Events and Triggers
23+
24+
Cloud events are things that happen in your cloud environment.These might be things like changes to data in a database, files added to a storage system, or a new virtual machine instance being created.
25+
26+
Events occur whether or not you choose to respond to them. You create a response to an event with a trigger. A trigger is a declaration that you are interested in a certain event or set of events. Binding a function to a trigger allows you to capture and act on events.
27+
28+
---
29+
30+
## References
31+
32+
- https://developers.google.com/learn/topics/functions
33+
- https://cloud.google.com/functions

0 commit comments

Comments
 (0)