An Azure service for ingesting, preparing, and transforming data at scale.
Hello Sahib Gasimov,
Greetings! Thanks for raising this question in Q&A forum.
The main issue is that Azure Data Factory (ADF) ForEach + Web Activity is not typically the best pattern for high-volume LLM enrichment workloads. At 50K+ records per day, it can create excessive activity runs, increase costs, and make Azure OpenAI throttling (HTTP 429) more likely.
- Consider moving the Azure OpenAI calls out of the ADF ForEach loop and into a single compute layer such as an Azure Function, Azure Databricks notebook, or Azure Container App.
- Batch multiple records into a single request where your use case allows it. This significantly reduces the number of API calls and activity executions.
- Implement throttling control, exponential backoff, and retry logic in code rather than relying solely on ADF retry policies.
- Use ADF primarily for orchestration (landing data, triggering enrichment, loading results into Snowflake) rather than record-by-record AI processing.
- For bursty batch workloads, evaluate Provisioned Throughput Units (PTU) if you require predictable throughput and consistently hit rate limits. Standard deployments are often sufficient when batch processing can be scheduled and throttled appropriately.
- If your data ultimately resides in Snowflake, you can also evaluate performing enrichment after the load using Snowflake-native AI capabilities and compare governance, latency, and cost against Azure OpenAI.
A common reference architecture is: ADF → ADLS/Snowflake staging → Azure Function/Databricks batch enrichment → Write enriched results → Snowflake. This avoids thousands of ADF activity executions and provides much better control over concurrency and rate limiting.
The next action is with you to evaluate whether the enrichment logic can be moved into a dedicated compute service (Function or Databricks). That approach is generally recommended for large-scale batch enrichment scenarios and should help address both the 429 throttling and ADF cost concerns.
If this answer helps you kindly accept the answer which will help others who have similar questions
Best Regards,
Jerald Felix.