The full answer
Buffer the stream in Azure Event Hubs, then write to the dedicated SQL pool in batches, either directly from Azure Stream Analytics or by staging files in the lake and loading them every few minutes with the COPY statement. A dedicated SQL pool is built for large set-based loads, so the design must avoid trickling single rows into it.
1. Ingest into Event Hubs Producers send events to Event Hubs (or IoT Hub for devices). Partitions and throughput or processing units are sized for the peak rate, and Event Hubs keeps events so consumers can catch up after a failure.
2. Option A: Stream Analytics straight to the pool
- Azure Stream Analytics reads Event Hubs, cleans and aggregates with SQL-like queries (including windows), and writes to a dedicated SQL pool table. Microsoft documents throughput up to 200 MB/s for this output.
- It is the simplest design when transformations are light and a latency of seconds to a minute is enough.
3. Option B: stage in the lake, load in micro-batches
- Stream Analytics, Spark Structured Streaming or Event Hubs Capture writes Parquet or Avro files to ADLS Gen2 every few minutes.
- A pipeline on a short schedule (or a storage event trigger) runs
COPY INTOinto a staging table, then merges or inserts into the final table with a stored procedure. - This gives more control over transformations and replays, and keeps a copy of the raw data.
COPY INTO stg.Events
FROM 'https://lake.dfs.core.windows.net/stream/events/2026/10/16/*.parquet'
WITH (FILE_TYPE = 'PARQUET', CREDENTIAL = (IDENTITY = 'Managed Identity'));
4. Table design
- Clustered columnstore index on the target, hash-distributed on a high-cardinality key used in joins; partition by date only if each partition still holds many millions of rows per distribution.
- Staging tables as round-robin heaps for the fastest loads.
5. Things that keep it reliable
- Idempotency: deduplicate on an event ID when merging, because streams deliver at least once.
- Latency budget: smaller batches lower latency but create more small loads and columnstore rowgroups; a few minutes is a common balance.
- Monitoring: watch Event Hubs consumer lag, Stream Analytics watermark delay and load durations.
- Workload isolation: give loads their own workload group so they don't compete with reporting queries.
For new platforms, Microsoft points warehouse work to Microsoft Fabric, where Eventstreams and Fabric Data Warehouse follow the same buffer-then-batch idea.
Last updated 16 October 2026
Sources