Skip to main content

factors to considers for choosing the storage account in cloud

 Type of data that is to be stored 

Structured 

semi-structured 

unstructured

The factors depend on operational needs

1. How often is the data accessible?

2. How quickly do we need to serve?

3. Need to run simple Queries?

4. Need to run complex queries?

5. accessed from Multiple regions?


1. Azure Storage Account: Think of an Azure Storage Account as the top-level resource that groups together various Azure Storage services. When you create a "General-purpose v2" storage account, it can contain:

  • Azure Blob Storage: For unstructured data (files, images, videos, backups).

  • Azure File Storage: For managed file shares (SMB/NFS).

  • Azure Queue Storage: For messaging (queues).

  • Azure Table Storage: For NoSQL key-value data.

  • Azure Disks: For VM disks (though often managed separately as "Managed Disks").

2. Azure Blob Storage:

  • This service is for storing unstructured data (Binary Large Objects or "blobs").

  • It's like a vast digital bucket where you put files. These files are accessed via HTTP/HTTPS endpoints.

  • It has different "types of blobs" (Block, Page, Append) and "access tiers" (Hot, Cool, Archive) as we discussed, but none of these are "queues."

3. Azure Queue Storage (The Actual Queue Service):

  • Purpose: Azure Queue Storage is a service specifically designed for storing large numbers of messages. Its primary use case is to decouple components of an application, enabling asynchronous communication.

  • How it works:

    • One part of an application (the "producer") places messages into a queue.

    • Another part of the application (the "consumer" or "worker") retrieves and processes these messages at its own pace.

    • This makes applications more scalable, resilient, and responsive.

  • Key Characteristics:

    • Messages: Each message can be up to 64 KB in size.

    • Retention: Messages can remain in the queue for up to 7 days by default (and can be set to never expire for newer API versions).

    • Access: Messages are typically accessed on a First-In, First-Out (FIFO) basis, though due to its distributed nature, strict order isn't guaranteed without specific design patterns.

    • Visibility Timeout: When a message is retrieved, it becomes "invisible" to other consumers for a configurable period (visibility timeout), preventing multiple workers from processing the same message simultaneously. If processing fails, the message reappears after the timeout.

    • Scalability: Can store millions of messages, up to the total capacity limit of the storage account.

Azure Blog  Gen2 storage 
 Azure Delta Lake Gen2 refers to the powerful synergy between two key Azure components for modern data analytics:
  1. Azure Data Lake Storage Gen2 (ADLS Gen2): This is Microsoft's enterprise-grade, highly scalable, and cost-effective data lake solution built on top of Azure Blob Storage. Its key differentiator is the Hierarchical Namespace (HNS), which allows it to organize data into folders and subfolders, much like a traditional file system. This HNS is critical for the performance and compatibility with big data analytics engines like Apache Spark and Hadoop, which expect a file system-like interaction.

  2. Delta Lake: This is an open-source storage layer that brings ACID transactions (Atomicity, Consistency, Isolation, Durability) to data lakes. It was originally developed by Databricks and operates on top of existing cloud object storage (like ADLS Gen2). Delta Lake fundamentally transforms a traditional data lake into a "Lakehouse" architecture, combining the flexibility and low cost of a data lake with the reliability and performance typically found in data warehouses.

What is Azure Delta Lake Gen2?

When we talk about "Azure Delta Lake Gen2," we're referring to implementing Delta Lake as the storage format and transaction layer directly on files stored in Azure Data Lake Storage Gen2.

Essentially:

  • ADLS Gen2 provides the foundational, massively scalable, and cost-effective storage for your raw data files (typically Parquet, ORC, JSON, CSV).

  • Delta Lake sits on top of these files, adding a transactional layer (via a transaction log) and metadata management that provides features traditionally associated with databases.


Characteristics of Delta Lake :

1.ACID Transactions
2. Schema Enforcement and Evolution
3.Time Travel (Data Versioning)
4.Unified Batch and Streaming:
5.Performance Optimizations
6.Full Compatibility with Apache Spark
7.Cost-Effective Storage


Comments

Popular posts from this blog

Entity Relationship (ER) Diagram Model with DBMS Example

Reference :   Entity Relationship (ER) Diagram Model with DBMS Example What is ER Diagram? ER Diagram  stands for Entity Relationship Diagram, also known as ERD is a diagram that displays the relationship of entity sets stored in a database. In other words, ER diagrams help to explain the logical structure of databases. ER diagrams are created based on three basic concepts: entities, attributes and relationships. ER Diagrams contain different symbols that use rectangles to represent entities, ovals to define attributes and diamond shapes to represent relationships. At first look, an ER diagram looks very similar to the flowchart. However, ER Diagram includes many specialized symbols, and its meanings make this model unique. The purpose of ER Diagram is to represent the entity framework infrastructure. Entity Relationship Diagram Example Table of Content: What is ER Diagram? What is ER Model? History of ER models Why use ER Diagrams? Facts about ER Diagram Model ER Diagram...

GCP Buckets

  CREATING BUCKET Method 1: Using GCP Console (UI) Go to the  Google Cloud Console . Navigate to  Cloud Storage . Click  Create Bucket . Enter a  unique name  for your bucket. Select a  storage class  (Standard, Nearline, Coldline, or Archive)... Choose a  location  (region/multi-region). Set  access control  (Uniform or Fine-grained). Click  Create . how do you optimise the class storage buckets - we can talk about cloud storage choosing wisely standard vs nearline vs coldline vs archive... how you managed your buckets - how did you manage? life cycle rule - regions multi regions etc

Pyspark

pyspark link the above link for a sample code for Pyspark  Transformations create new datasets, actions return values, or write data. Transformations: Definition: Transformations are operations that create a new RDD or data frame from an existing one. They are "lazy," meaning they don't execute immediately. Instead, Spark builds a lineage graph (DAG - Directed Acyclic Graph) of transformations. Examples: map() : Applies a function to each element. filter() : Select elements based on a condition. flatMap() : Similar to a map, but flattens the results. groupByKey() : Groups elements by key. reduceByKey() : Reduces elements by key. join() : Joins two datasets. distinct() : Removes duplicate elements. union() : Combines two datasets. coalesce() : Reduces the number of partitions. repartition() : Increases or decreases the number of partitions. Actions: Definition: Actions trigger the execution of the lineage graph, which returns a result to the driver progra...