Alison's New App is now available on iOS and Android! Download Now

Module 1: Use GCP To Build Your Apps

    Study Reminders
    Support

    Event Driven Programs with Cloud Functions
    Cloud functions is serverless code that allows you to run it based on certain events in this topic you learn how cloud functions work. Developer agility comes from building systems composed of small independent units of functionality focused on doing one thing well. Cloud functions lets you build and deploy services at the level of a single function not at the level of entire applications containers or vms. Cloud functions are ideal if you need to connect an extended Cloud services and want to automate event driven functions that respond to Cloud events it’s also ideal if you want to use open and familiar no node.js, python or go without the need to manage a server runtime environment. Cloud functions provides a connective layer of logic that lets you write code to connect an extended Cloud services you can listen and respond to a file upload to Cloud storage a log change or an incoming message on a cloud pubsub topic and so on.
    Cloud functions have access to the Google service account credentials and are therefore seamlessly authenticated with a majority of the gcp services such as cloud datastore cloud spanner cloud translation API and cloud vision API. Cloud events are things that happen in the Cloud environment these might be things like changes to data in the database, files added to a storage system or a new virtual machine instance created events occur whether or not users choose to respond to them. You can create a response to an event with a trigger, a trigger is a declaration of interest in a certain event or set of events binding a function to a trigger allows you to capture and act on the events.
    Cloud functions remove the work of managing servers configuring software, updating frameworks and patching operating systems.We fully manage the software and infrastructure so that you just add code furthermore the provisioning of resources that happens automatically in response to events. This means that a function can scale from a few invocations a day too many millions of invoccasions without any additional work for you, events happen all the time with system like file uploads to Cloud storage changes to database records, request to HTTP endpoints and so on. By writing code that runs in response to those events cloud functions runs it while automatically managing any underlying infrastructure. Cloud functions connect and extennd Cloud services with code so you can treat them as building blocks and adjust them as your needs change. You could also extend your application using a broad ecosystem of third-party services and apis a Cloud service emits some kind of event this can be a pop-up message a changed your cloud storage object or a website for example the event kicks off a cloud function the function can be written in node.js Python the function get in other services and write back the results building infrastructure is not required when leveraging cloud functions.