Azure Data Pipelines with Event Hubs and Synapse
Follow live events and scheduled data through Azure processing, Data Lake Storage Gen2, and Synapse, with a clear choice between stream and batch paths.
Event Hubs ingests live events. Stream Analytics handles continuous transformations, while Data Factory schedules batch copies and transformations. Both paths can land raw and curated files in Data Lake Storage Gen2 for Synapse serverless SQL or dedicated warehouse workloads.
Azure Data Pipelines with Event Hubs and Synapse
Imagine an order service sending a live event whenever an order changes. The operations team wants a near-real-time view, while finance needs a nightly export joined with older records. Azure has separate services for ingesting, transforming, storing, and querying that data. A small pipeline can use some of them without making every service mandatory.
Live path: order events → Event Hubs → optional Stream Analytics → Data Lake Storage Gen2.
Batch path: database or file export → Data Factory copy pipeline → Data Lake Storage Gen2 raw files → optional Data Factory transformation → curated files.
Synapse can query lake files with serverless SQL or host a provisioned dedicated SQL pool for a warehouse workload. Choose each step based on freshness and query needs; these paths show the roles, not a requirement to use every service.
1. Ingest live events with Event Hubs
Use Azure Event Hubs when producers need to append a stream of events that one or more consumers will process. For the order example, an event might contain an order ID, status, event time, and schema version. Keep enough information in each event for consumers to process it independently, and plan how they will handle retries and duplicate deliveries.
Event Hubs is the ingestion point, not the final data lake. Consumers can process events as they arrive. Event Hubs Capture is another option for automatically writing a stream to Blob Storage or Data Lake Storage; its availability depends on the Event Hubs tier. It can provide a raw landing path when a separate streaming consumer is unnecessary. See Event Hubs scalability and throughput guidance and Capture overview.
2. Choose a processor for the timing you need
For continuous transformations, use Stream Analytics to read events from Event Hubs, filter or aggregate them, and send results to an output such as Data Lake Storage. It is the streaming processor in this design.
For scheduled or batch work, use Azure Data Factory to coordinate copy and transformation activities. For example, a nightly pipeline can copy a finance export into a raw folder, then invoke a transformation step to produce curated data. Data Factory orchestrates this work; it is not the streaming engine. The Data Factory introduction describes its integration and orchestration role, and the Stream Analytics introduction covers continuous processing.
You may need only one of these processors. Use Capture or a consumer that writes to storage if landing the stream is enough. Add Stream Analytics when you need continuous calculations before writing results. Add Data Factory when scheduled dependencies, copies, or batch transformations need coordination.
3. Keep raw and curated files in Data Lake Storage
Use Azure Data Lake Storage Gen2 when the pipeline should retain files for later processing and analysis. It is built on Azure Blob Storage, with hierarchical namespace support for directory and file-system operations. It is not a separate storage account type that replaces Blob Storage.
A practical layout separates source data from outputs, for example:
raw/orders/for captured or copied source eventsraw/finance/for the original scheduled exportcurated/orders/for normalized records used by reports
Keeping the raw input gives you a way to replay transformations when logic changes, subject to the storage and retention policy you choose. Curated files should have an agreed schema and partitioning approach based on common queries. See Microsoft’s Data Lake Storage overview and hierarchical namespace documentation.
4. Query the lake or load a warehouse
Choose Synapse serverless SQL when analysts need to explore supported files in the lake without first loading them into a provisioned warehouse. The serverless SQL endpoint queries data in place, so file layout, formats, and query patterns affect the experience.
Choose a dedicated SQL pool when the workload calls for provisioned warehouse resources and curated relational tables for repeated structured analytics. This adds capacity and administration decisions, so compare it against the query workload before adopting it. Synapse includes multiple analytics options; its overview and serverless SQL overview explain the distinction.
Quick service chooser
| Need | Starting point | Role in this pipeline |
|---|---|---|
| Accept a live event stream | Event Hubs | Ingest events for downstream consumers |
| Continuously filter or aggregate events | Stream Analytics | Process events as they arrive |
| Schedule copies and batch dependencies | Data Factory | Orchestrate integration and batch work |
| Retain source and curated files | Data Lake Storage Gen2 | Store files for replay and analysis |
| Query files in place | Synapse serverless SQL | Run ad hoc SQL against lake data |
| Run a provisioned warehouse workload | Synapse dedicated SQL pool | Serve structured analytics from provisioned resources |
These choices fit together but are not interchangeable. For instance, a batch-only export may go from Data Factory to the lake without Event Hubs or Stream Analytics. A streaming dashboard might use Event Hubs and Stream Analytics without a dedicated SQL pool.
Check capacity and cost for your deployment
Avoid sizing from a generic throughput or price figure. Event Hubs capacity depends on the selected tier and configuration; subscription and regional quotas can also affect what you can create. Data shape, event size, processing complexity, file layout, retention, and query concurrency all change the result. Review current service quotas and pricing for your subscription, region, and expected workload before choosing capacity. Microsoft’s Event Hubs scaling guidance and Azure subscription limits are starting points. Documentation links checked November 5, 2026.
Further reading
- Azure core services for DevOps for compute and infrastructure choices.
- Data lake concepts for storage layout and lake design.
- Data warehouse architecture for warehouse modeling and serving patterns.
Category
Related Posts
AWS Data Services: Kinesis, S3, Glue, Athena, Redshift
Follow an order event from Kinesis Data Streams through S3 to Athena or Redshift, adding Glue when transformation or shared catalog metadata helps.
Data Migration: Strategies and Patterns for Moving Data
Plan data movement between systems with CDC, staged cutovers, validation gates, and recovery paths. Learn where schema migration is a separate concern.
GCP Data Services: Dataflow, BigQuery, and Pub/Sub
Build Google Cloud data pipelines with Pub/Sub, Dataflow, BigQuery, and Cloud Storage; monitor lag and recover streaming data gaps.