Book Image

Azure Data Engineering Cookbook - Second Edition

By : Nagaraj Venkatesan, Ahmad Osama
Book Image

Azure Data Engineering Cookbook - Second Edition

By: Nagaraj Venkatesan, Ahmad Osama

Overview of this book

The famous quote 'Data is the new oil' seems more true every day as the key to most organizations' long-term success lies in extracting insights from raw data. One of the major challenges organizations face in leveraging value out of data is building performant data engineering pipelines for data visualization, ingestion, storage, and processing. This second edition of the immensely successful book by Ahmad Osama brings to you several recent enhancements in Azure data engineering and shares approximately 80 useful recipes covering common scenarios in building data engineering pipelines in Microsoft Azure. You’ll explore recipes from Azure Synapse Analytics workspaces Gen 2 and get to grips with Synapse Spark pools, SQL Serverless pools, Synapse integration pipelines, and Synapse data flows. You’ll also understand Synapse SQL Pool optimization techniques in this second edition. Besides Synapse enhancements, you’ll discover helpful tips on managing Azure SQL Database and learn about security, high availability, and performance monitoring. Finally, the book takes you through overall data engineering pipeline management, focusing on monitoring using Log Analytics and tracking data lineage using Azure Purview. By the end of this book, you’ll be able to build superior data engineering pipelines along with having an invaluable go-to guide.
Table of Contents (16 chapters)

Creating distributed tables and modifying table distribution

A Synapse dedicated SQL pool is a distributed database allowing us to distribute data across multiple nodes and process it in parallel at multiple nodes to make data processing more efficient. To leverage the powers of the distributed database effectively, we need to store the data across the nodes with the correct strategy. A Synapse dedicated SQL pool offers three options while distributing the data, and they are listed as follows:

  • Round-Robin distribution – This distributes the data equally across the nodes of the SQL pool.
  • Hash distribution – This distributes the data based on the values of a column in the table.
  • Replicated – This copies the table to all nodes of the dedicated SQL pool.

The table distribution option is selected at the time of table creation and can’t be modified afterward. In this recipe, we will create a table specifying a distribution option, and we...