An Introduction talk about Google Cloud Functions done at GDGJohannesburg
Introduction to Cloud FunctionsPeter-John Welcome@pjapplez
View Slide
What is Cloud Functions?● Serverless Environment (Backend Code)● Microservice● Code as infrastructure
Why Cloud Functions?● Auto Scaling up and down based on load● Pay as you go● Authenticated access to Firebase and Google Services (ML/ NLP)● Fully managed system
How does it work?Built on express, which is a node webserving framework.● Http endpoints● Handles firebase event.
Cloud Functions Integration● Http Endpoints● Firebase host for dynamic serving of content● Crashlytics● Cloud pub/sub● Firebase Auth,Cloud Messaging, Analytics ,Cloud Storage, RT Database ,Firestore
Languages
TimeDemo
Unit Testinghttps://firebase.google.com/docs/functions/unit-testing
Running Locally$ firebase serve --only functions, hosting (Https endpoint functions)$ firebase experimental: functions : shell --port 11111 ( function triggers- Firebase)
Running on CI/CDhttps://circleci.com/docs/2.0/deployment_integrations/#firebase
Thanks!Contact me:google.com/u/0/+PeterJohnWelcomeTwitter :@pjapplez[email protected]Peter-johnwelcome.co.zahttps://github.com/pjwelcome