File tree Expand file tree Collapse file tree 10 files changed +112
-0
lines changed
tips-avoid-infinite-retries Expand file tree Collapse file tree 10 files changed +112
-0
lines changed Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Timeout sample
4+
5+ See:
6+
7+ * [ Cloud Functions Execution Timeline] [ tutorial ]
8+ * [ Sample Code] ( main.py )
9+
10+ [ tutorial ] : https://cloud.google.com/functions/docs/concepts/execution-environment#execution-timeline
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Filesystem sample
4+
5+ See:
6+
7+ * [ Cloud Functions Filesystem] [ tutorial ]
8+ * [ Sample Code] ( main.py )
9+
10+ [ tutorial ] : https://cloud.google.com/functions/docs/concepts/execution-environment#memory-file-system
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Requests sample
4+
5+ See:
6+
7+ * [ Cloud Functions Networking] [ tutorial ]
8+ * [ Sample Code] ( main.py )
9+
10+ [ tutorial ] : https://cloud.google.com/functions/docs/concepts/execution-environment#network
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Statelessness sample
4+
5+ See:
6+
7+ * [ Cloud Functions Statelessness] [ tutorial ]
8+ * [ Sample Code] ( main.py )
9+
10+ [ tutorial ] : https://cloud.google.com/functions/docs/concepts/execution-environment#statelessness
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Avoiding Infinite Retries sample
4+
5+ ## More info
6+ See:
7+
8+ * [ Retrying Event-Driven Functions] [ tutorial ]
9+ * [ Sample code] [ code ]
10+
11+ [ tutorial ] : https://cloud.google.com/functions/docs/bestpractices/retries#set_an_end_condition_to_avoid_infinite_retry_loops
12+ [ code ] : main.py
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Connection Pooling sample
4+
5+ ## More info
6+ See:
7+
8+ * [ Optimizing Networking] [ tutorial ]
9+ * [ Sample code] [ code ]
10+
11+ [ tutorial ] : https://cloud.google.com/functions/docs/bestpractices/networking#maintaining_persistent_connections
12+ [ code ] : main.py
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - GCP APIs sample
4+
5+ ## More info
6+ See:
7+
8+ * [ Optimizing Networking] [ tutorial ]
9+ * [ Sample code] [ code ]
10+
11+ [ tutorial ] : https://cloud.google.com/functions/docs/bestpractices/networking#maintaining_persistent_connections
12+ [ code ] : main.py
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Lazy Globals sample
4+
5+ ## More info
6+ See:
7+
8+ * [ Tips & Tricks for Cloud Functions] [ tutorial ]
9+ * [ Sample code] [ code ]
10+
11+ [ tutorial ] : https://cloud.google.com/functions/docs/bestpractices/tips#use_global_variables_to_reuse_objects_in_future_invocations
12+ [ code ] : main.py
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Retries sample
4+
5+ ## More info
6+ See:
7+
8+ * [ Retrying Event-Driven Functions] [ tutorial ]
9+ * [ Sample code] [ code ]
10+
11+ [ tutorial ] : https://cloud.google.com/functions/docs/bestpractices/retries
12+ [ code ] : main.py
Original file line number Diff line number Diff line change 1+ <img src =" https://avatars2.githubusercontent.com/u/2810941?v=3&s=96 " alt =" Google Cloud Platform logo " title =" Google Cloud Platform " align =" right " height =" 96 " width =" 96 " />
2+
3+ # Google Cloud Functions - Variable Scope sample
4+
5+ ## More info
6+ See:
7+
8+ * [ Cloud Functions Execution Environment] [ tutorial ]
9+ * [ Sample code] [ code ]
10+
11+ [ tutorial ] : https://cloud.google.com/functions/docs/concepts/execution-environment#scope
12+ [ code ] : main.py
You can’t perform that action at this time.
0 commit comments