Showing posts with label spark. Show all posts
Showing posts with label spark. Show all posts

03 December 2026

🎯Dunith Danushka - Collected Quotes

"A data lakehouse is a modern data management architecture that combines the best features of data lakes and data warehouses. It was introduced to bridge the gap between these two traditional architectures, offering both the flexibility of data lakes and the performance and reliability of data warehouses. The key innovation of data lakehouses is their ability to enforce data structure and schema while maintaining the cost-effectiveness and scalability of object storage. This is achieved through specialized table formats and metadata management systems that provide ACID transactions, schema enforcement, and efficient query optimization - all while working directly with files stored in object storage." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"As organizations increasingly rely on AI applications that leverage vector embeddings, specialized storage solutions called vector databases have emerged. These databases are optimized for storing, indexing, and querying vector embeddings efficiently. Traditional databases struggle with vector operations because high-dimensional vectors require specialized indexing techniques, similarity calculations are computationally expensive at scale, and the 'nearest neighbor' problem in high dimensions requires specialized algorithms. Vector databases solve these challenges with specialized indexing structures (like HNSW, IVF, etc.) that make similarity search scalable and efficient." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"CDC is a design pattern that identifies and captures changes made to data in a database, then ensures those changes are replicated to other systems in real-time. Instead of periodically scanning entire tables for changes, CDC tracks modifications at the source - including inserts, updates, and deletes - as they happen. CDC works by monitoring the database’s transaction logs or similar change tracking mechanisms. When a change occurs, CDC captures essential details, including the type of operation (insert, update, or delete), the modified data, timestamp, and relevant metadata about the change." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"Despite its advantages, implementing stateful processing comes with significant technical challenges that need to be carefully addressed. Organizations must manage state consistency across distributed systems, implement robust state recovery mechanisms for handling failures, ensure their storage solutions can scale with growing data volumes, and maintain exactly-once processing semantics to guarantee data accuracy. These challenges require careful architectural planning and implementation." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025) 

"Real-time analytics refers to the ability to collect, process, and analyze data as soon as it becomes available, typically within seconds or milliseconds of the events occurring. Unlike batch analytics, which processes data in scheduled intervals, real-time analytics provides immediate insights that enable organizations to respond quickly to changing conditions. [...[] The transition from batch to real-time analytics represents a fundamental shift in how organizations derive value from their data. While batch processing remains valuable for historical analysis and complex computations, real-time analytics enables businesses to capitalize on immediate opportunities and respond to threats as they emerge." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025) 

"Stateful processing offers several powerful capabilities that make it ideal for real-time data analysis. These include the ability to detect patterns and trends over time, support complex event processing and real-time analytics, enhance accuracy in anomaly detection and fraud prevention, and maintain user sessions and context. These features enable systems to make intelligent decisions based on historical data and current context."  (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"Stateful stream processing is a paradigm where processing tasks maintain and use state information across multiple events over time. Unlike stateless processing, which treats each event independently, stateful processing remembers previous events and their context to make more informed decisions. This capability enables complex operations like windowing, aggregations, and pattern detection in streaming data." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"Streaming data represents a fundamental shift from traditional batch processing. In batch processing, data is collected over time and processed in large chunks at scheduled intervals. In contrast, streaming data is processed continuously as it arrives, enabling real-time analysis and immediate action. This approach is particularly valuable for use cases that require instant insights or responses, such as fraud detection, real-time analytics, or monitoring systems. The benefits of stream processing include reduced latency, as data is processed immediately rather than waiting for the next batch window, and the ability to handle infinite streams of data. It also enables real-time decision making and more responsive business operations."  (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"The Medallion architecture, also known as the multi-hop architecture, is a data modeling pattern commonly used in data lakehouses to organize data based on its quality, reliability, and level of transformation. This architecture helps maintain data quality, enables efficient data governance, and provides a clear path for data transformation." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025)

"Materialized views, previously known as live tables, reprocess the entire source dataset each time the pipeline runs. This type of object is suitable for scenarios where data sources don’t adhere to the append-only pattern required by streaming sources. This means that materialized views can handle input data that contains updates, deletes, or overwrites." (Derar Alhussein, "Databricks Certified Data Engineer Associate Study Guide", 2025) 

"The unified data lakehouse architecture eliminates the need for separate systems by allowing data science, machine learning, and business intelligence workloads to operate on a single platform. This approach enables effective management of both structured and unstructured data while reducing overall costs and complexity." (Dunith Danushka, "Practical Data Engineering with Apache Projects: Solving Everyday Data Challenges with Spark, Iceberg, Kafka, Flink, and More", 2025) 

18 December 2024

🧭🏭Business Intelligence: Microsoft Fabric (Part VII: Data Stores Comparison)

Business Intelligence Series
Business Intelligence Series

Microsoft made available a reference guide for the data stores supported for Microsoft Fabric workloads [1], including the new Fabric SQL database (see previous post). Here's the consolidated table followed by a few aspects to consider: 

Area Lakehouse Warehouse Eventhouse Fabric SQL database Power BI Datamart
Data volume Unlimited Unlimited Unlimited 4 TB Up to 100 GB
Type of data Unstructured, semi-structured, structured Structured, semi-structured (JSON) Unstructured, semi-structured, structured Structured, semi-structured, unstructured Structured
Primary developer persona Data engineer, data scientist Data warehouse developer, data architect, data engineer, database developer App developer, data scientist, data engineer AI developer, App developer, database developer, DB admin Data scientist, data analyst
Primary dev skill Spark (Scala, PySpark, Spark SQL, R) SQL No code, KQL, SQL SQL No code, SQL
Data organized by Folders and files, databases, and tables Databases, schemas, and tables Databases, schemas, and tables Databases, schemas, tables Database, tables, queries
Read operations Spark, T-SQL T-SQL, Spark* KQL, T-SQL, Spark T-SQL Spark, T-SQL
Write operations Spark (Scala, PySpark, Spark SQL, R) T-SQL KQL, Spark, connector ecosystem T-SQL Dataflows, T-SQL
Multi-table transactions No Yes Yes, for multi-table ingestion Yes, full ACID compliance No
Primary development interface Spark notebooks, Spark job definitions SQL scripts KQL Queryset, KQL Database SQL scripts Power BI
Security RLS, CLS**, table level (T-SQL), none for Spark Object level, RLS, CLS, DDL/DML, dynamic data masking RLS Object level, RLS, CLS, DDL/DML, dynamic data masking Built-in RLS editor
Access data via shortcuts Yes Yes Yes Yes No
Can be a source for shortcuts Yes (files and tables) Yes (tables) Yes Yes (tables) No
Query across items Yes Yes Yes Yes No
Advanced analytics Interface for large-scale data processing, built-in data parallelism, and fault tolerance Interface for large-scale data processing, built-in data parallelism, and fault tolerance Time Series native elements, full geo-spatial and query capabilities T-SQL analytical capabilities, data replicated to delta parquet in OneLake for analytics Interface for data processing with automated performance tuning
Advanced formatting support Tables defined using PARQUET, CSV, AVRO, JSON, and any Apache Hive compatible file format Tables defined using PARQUET, CSV, AVRO, JSON, and any Apache Hive compatible file format Full indexing for free text and semi-structured data like JSON Table support for OLTP, JSON, vector, graph, XML, spatial, key-value Tables defined using PARQUET, CSV, AVRO, JSON, and any Apache Hive compatible file format
Ingestion latency Available instantly for querying Available instantly for querying Queued ingestion, streaming ingestion has a couple of seconds latency Available instantly for querying Available instantly for querying

It can be used as a map for what is needed to know for using each feature, respectively to identify how one can use the previous experience, and here I'm referring to the many SQL developers. One must consider also the capabilities and limitations of each storage repository.

However, what I'm missing is some references regarding the performance for data access, especially compared with on-premise workloads. Moreover, the devil hides in details, therefore one must test thoroughly before committing to any of the above choices. For the newest overview please check the referenced documentation!

For lakehouses, the hardest limitation is the lack of multi-table transactions, though that's understandable given its scope. However, probably the most important aspect is whether it can scale with the volume of reads/writes as currently the SQL endpoint seems to lag. 

The warehouse seems to be more versatile, though careful attention needs to be given to its design. 

The Eventhouse opens the door to a wide range of time-based scenarios, though it will be interesting how developers cope with its lack of functionality in some areas. 

Fabric SQL databases are a new addition, and hopefully they'll allow considering a wide range of OLTP scenarios. Starting with 28th of March 2025, SQL databases will be ON by default and tenant admins must manually turn them OFF before the respective date [3].

Power BI datamarts have been in preview for a couple of years.


References:
[1] Microsoft Fabric (2024) Microsoft Fabric decision guide: choose a data store [link]
[2] Reitse's blog (2024) Testing Microsoft Fabric Capacity: Data Warehouse vs Lakehouse Performance [link]
[3] Microsoft Fabric Update Blog (2025) Extending flexibility: default checkbox changes on tenant settings for SQL database in Fabric [link]
[4] Microsoft Fabric Update Blog (2025) Enhancing SQL database in Fabric: share your feedback and shape the future [link]
[5] Microsoft Fabric Update Blog (2025) Why SQL database in Fabric is the best choice for low-code/no-code Developers [link] 
Related Posts Plugin for WordPress, Blogger...

About Me

My photo
Koeln, NRW, Germany
IT Professional with more than 25 years experience in IT in the area of full life-cycle of Web/Desktop/Database Applications Development, Software Engineering, Consultancy, Data Management, Data Quality, Data Migrations, Reporting, ERP implementations & support, Team/Project/IT Management, etc.