The durable serverless way of implementing CSV imports
The following diagram shows all the steps required to build the solution using serverless architecture:
Figure 8.1: Durable Functions—architecture process flow
Here are the detailed steps pertaining to the preceding architecture diagram that will be implemented in this chapter:
- External clients or applications upload a CSV file to blob storage.
- A blob trigger gets triggered once the CSV file is uploaded successfully.
- The durable orchestrator is started from the blob trigger.
- The orchestrator invokes Read CSV - Activity Trigger to read the CSV content from blob storage.
- Orchestrator invokes Scale RUs - Activity Trigger to scale up the Cosmos DB collection's throughput so that it can accommodate the load.
- Orchestrator invokes Import Data - Activity Trigger to prepare the collection to bulk import data.
- Finally, Import Data - Activity Trigger loads the collection...