Slide 1

Slide 1 text

Serverless 101 With Google Cloud Functions. Ibadan Tunmise Ogunniyi Senior Backend Engineer, Univrses.

Slide 2

Slide 2 text

Tunmise Ogunniyi ● Sr. Backend Engineer at Univrses ● Co-founder at MandatesVR @dev_tunmise

Slide 3

Slide 3 text

What is serverless?

Slide 4

Slide 4 text

No Server? 🤔

Slide 5

Slide 5 text

Ibadan Building applications without worrying about servers.

Slide 6

Slide 6 text

Serverless is a cloud computing model that enables developers build and run applications without managing the underlying infrastructure. OpenAI. (2024). ChatGPT [Large language model]. https://chatgpt.com

Slide 7

Slide 7 text

Build and scale to millions on battle tested infrastructure Mostly cheaper if used correctly Faster software delivery cycle Why Serverless? Would you rather not worry about servers 😄

Slide 8

Slide 8 text

Google Cloud Functions Now Google Cloud Run functions

Slide 9

Slide 9 text

Cloud Run functions => Run functions in the cloud

Slide 10

Slide 10 text

Package application components into functions Visualizing Serverless Flow on Cloud Run Cloud Run Global Audience 󰞐

Slide 11

Slide 11 text

Cloud Run functions is a simple and intuitive serverless compute offering from Google Cloud Platform. Just write your code and let Google Cloud handle the operational infrastructure.

Slide 12

Slide 12 text

Why functions? 🤨

Slide 13

Slide 13 text

Why functions? Something to invoke! You’re free to use any other construct of your programming language.

Slide 14

Slide 14 text

Native support a lot of programming languages Support for other languages via containerization Pay as you go! Integration with Google Cloud ecosystem Google Cloud Run functions highlights 1. Go 2. NodeJS 3. Python 4. Java 5. .NET Core 6. Ruby 7. PHP

Slide 15

Slide 15 text

Data processing/ETL Pipelines WebHooks APIs Real time file processing Common use cases

Slide 16

Slide 16 text

Let’s Code!

Slide 17

Slide 17 text

Ibadan Random Number Generator

Slide 18

Slide 18 text

Steps 1 1. Create Google Cloud Account 2. Login to the Console 3. Create a project 4. If this is your first time, you might need to setup a billing profile and input your card details 😟 5. Go to “Cloud Run” 6. Add a service a. Select runtime(doesn’t have to be NodeJS) b. Give the function a name c. Keep the defaults 7. It might take some time to create, it’s fine. 8. Study/Absorb the environment - focus on source. 9. Deploy and test 🚀

Slide 19

Slide 19 text

Steps 2 1. Download zip 2. Extract and open in code editor 3. Install & setup google cloud CLI - gcloud. 4. Instructions at: https://cloud.google.com/sdk/docs/install 5. Add extra endpoint 6. Ensure you’re in the right project a. “gcloud config set project ” 7. Modify code 8. Run deploy: a. gcloud beta run deploy random-number-generator-func --source . --function "helloHttp"

Slide 20

Slide 20 text

Questions?

Slide 21

Slide 21 text

Thank You @dev_tunmise