Asynchronous operations in UI using Workflows and Firestore
summary
Client JavaScript calls a Cloud Function that uses the Workflows Executions API to start an execution which orchestrates services (payments, Document AI, shipping) and updates a Firestore document at each key step; the UI subscribes with onSnapshot to show live status changes. Workflows can create callback endpoints and pause waiting for an external HTTP call, enabling human approval flows. Workflows run reliably for up to a year, handle retries, and use a Firestore connector so no manual DB code is required.
AI-written summary · about
chapters (8)
- 0:00Start
- 5:34Pizza Ordering Process
- 6:19Workflow Execution
- 7:36Recap
- 8:23Client-Side Javascript Code
- 9:22Workflow Definition
- 10:27Smart Expense Report Application
- 16:17Pause the Execution of the Workflow
related talks
35mArchitecting Mobile Web Apps
30mMessage-driven microservices orchestration
40mZero to App: Live Coding a Cross-Platform App on Firebase
58mService workers - beyond the cache
26mBrowsers behind your back
27mFirebase: Making Real-time a Reality
36mSo you can build an Action. Now what?
37mHigh Stakes, Real Time: How Athenahealth Scaled GraphQL in Clinical Workflows
