You are a developer working on an internal application for payroll processing. You are building a component of the application that allows an employee to submit a timesheet, which then initiates several steps:
•An email is sent to the employee and manager, notifying them that the timesheet was submitted.
•A timesheet is sent to payroll processing for the vendor's API.
•A timesheet is sent to the data warehouse for headcount planning.
These steps are not dependent on each other and can be completed in any order. New steps are being considered and will be implemented by different development teams. Each development team will implement the error handling specific to their step. What should you do?
- Deploy a Cloud Function for each step that calls the corresponding downstream system to complete the required action.
- Create a Pub/Sub topic for each step. Create a subscription for each downstream development team to subscribe to their step's topic.
- Create a Pub/Sub topic for timesheet submissions. Create a subscription for each downstream development team to subscribe to the topic.
- Create a timesheet microservice deployed to Google Kubernetes Engine. The microservice calls each downstream step and waits for a successful response before calling the next step.
Reveal Solution Next Question