Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DevFest - Serverless 101 with Google Cloud Func...

Tunmise
December 24, 2024

DevFest - Serverless 101 with Google Cloud Functions

Tunmise

December 24, 2024
Tweet

Other Decks in Programming

Transcript

  1. 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
  2. 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 😄
  3. 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.
  4. Why functions? Something to invoke! You’re free to use any

    other construct of your programming language.
  5. 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
  6. 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 🚀
  7. 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 <project-ID>” 7. Modify code 8. Run deploy: a. gcloud beta run deploy random-number-generator-func --source . --function "helloHttp"