QuestionQ84

VerifiedScaling with Google Cloud Operations

You are a program manager for developers building an event-driven application that lets users follow each other’s activity in the app. Whenever a user adds themself as a follower of another user, a write occurs in the real-time database.

The developers will create a lightweight code component that responds to database writes and generates a notification to inform the appropriate users that they have gained new followers. The code must integrate with cloud services such as Pub/Sub, Firebase, and Cloud APIs to streamline the orchestration process. The application needs a platform that automatically manages the underlying infrastructure and scales to zero when there is no activity.

Which primary compute resource should the developers choose, given these requirements?

Explanation

Cloud Functions provides serverless, event-driven execution for lightweight code. It can respond to Firebase Realtime Database events and integrate with services such as Pub/Sub and Cloud APIs; the platform manages the underlying infrastructure and automatically scales with workload, including to zero when idle.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!