7 Big Data Processing And Storage

Cloud Computing · Unit 7

Big Data Processing and Storage

Exam-focused notes for Big Data Processing and Storage (Cloud Computing, BIT408): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.

Big Data Processing and Storage in short

Modern cloud systems handle huge and fast-growing data. This chapter looks at the problems of streaming data and how data lakes store raw data. It also covers graph databases for connected data and the difference between column and row storage.

Big Data Processing and Storage: notes

Fast data processing and streaming issues

Streaming data is data that arrives continuously, such as sensor readings, click events or payment transactions. Fast data processing means analysing it within seconds or less, instead of waiting for a daily batch job. Cloud tools include Apache Kafka, Amazon Kinesis, Apache Flink and Spark Streaming.

Main issues:

  • High volume and velocity: data comes in very fast, and the system must keep up without losing records.
  • Low latency need: results are wanted almost at once.
  • Out-of-order and late data: events may arrive after later events, which breaks time-based counts. Systems use time windows and watermarks to handle this.
  • Delivery guarantees: it is hard to make sure each event is processed exactly once. Some systems give at-least-once delivery, so duplicates must be handled.
  • State management: running counts and totals must be stored safely and recovered after a failure.
  • Scaling and load spikes: the system must grow quickly when traffic jumps.
  • Fault tolerance: a failed node must not lose data.
  • Data quality: bad or missing records must be handled on the fly.
  • Cost: always-on processing uses resources all the time.
  • Security and privacy of data in motion.

Data lake advantages

A data lake is a central store that keeps large amounts of raw data in its original format. This includes structured tables, semi-structured JSON and logs, and unstructured files such as images. Examples are Amazon S3, Azure Data Lake Storage and Google Cloud Storage.

A data lake uses schema on read: the structure is applied when the data is read, not when it is stored. A data warehouse uses schema on write, so data must be cleaned and shaped first.

Advantages:

  • Stores all data types in one place.
  • Low cost, since cheap object storage is used.
  • Flexibility: data can be saved now and used later for questions not yet known.
  • Scalability: capacity grows almost without limit.
  • Supports many uses: reports, machine learning, and data exploration.
  • Breaks data silos, because teams share one source.
  • Works with many tools, such as Spark and SQL query services.

A risk is that a poorly managed lake turns into a "data swamp" where nobody can find or trust the data. Good cataloguing and access control prevent this.

What this unit covers

  • Fast data processing and streaming issues
  • Data lake advantages
  • Graph database definition and applications
  • Graph processing techniques
  • Columnar storage format
  • Row storage format

Columnar storage format

2082 · 5 marks

How data is stored in columnar storage and row storage? [5]

Structure: - Data is stored row by row (horizontally) - All columns of a single row are stored contiguously in memory - Each complete record is stored together Example: Characteristics: - Entire row retrieved in one disk access - Efficient for OLTP (Online Transaction Processing) operations - Goo...

Open this answer on its own page →

Graph database definition and applications

2082 · 5 marks

What is graph database? How graph processing is done? [5]

Show solved answer

Model Answer: Graph Database and Graph Processing

What is a Graph Database?

A graph database is a specialized database management system designed to store, manage, and query data organized as graphs. It represents data as a collection of:

  • Nodes (Vertices): Entities or objects in the system
  • Edges (Relationships): Connections or relationships between nodes
  • Properties: Attributes associated with nodes and edges

Graph databases are optimized for traversing relationships and are particularly effective for data with complex interconnections, such as social networks, recommendation systems, knowledge graphs, and organizational hierarchies.

Key Characteristics:

  • Relationship-centric rather than table-centric
  • Fast traversal of connections
  • Efficient for highly connected data
  • Support for complex queries involving multiple relationships

How Graph Processing is Done

Graph processing involves several key steps:

1. Graph Representation

  • Data is modeled as nodes and edges
  • Each node contains entity information
  • Edges represent relationships with properties

2. Query Execution

  • Queries traverse the graph structure
  • Pattern matching identifies relevant subgraphs
  • Algorithms compute results based on graph topology

3. Traversal Methods

  • Depth-First Search (DFS): Explores deep into branches
  • Breadth-First Search (BFS): Explores level by level
  • Graph algorithms: Shortest path, centrality measures, clustering

4. Optimization

  • Index structures for fast node/edge lookup
  • Caching frequently accessed paths
  • Query optimization to minimize traversals

5. Result Aggregation

  • Collecting results from traversals
  • Computing aggregates across matched patterns
  • Returning structured results to users

Example Use Case: In a social network graph, finding "friends of friends" involves traversing two levels of edges from a starting node efficiently.

Open this answer on its own page →

2081 · 5 marks

What is Graph Database? Explain different application of Graph Database. [5]

Show solved answer

Model Answer: Graph Database and Applications

What is Graph Database?

A Graph Database is a specialized database management system designed to store, manage, and query data organized as a graph structure. It represents data as a collection of:

  • Nodes (Vertices): Entities or objects in the system
  • Edges (Relationships): Connections or relationships between nodes
  • Properties: Attributes associated with both nodes and edges

Graph databases are optimized for traversing relationships and performing complex queries that involve multiple levels of connections, making them highly efficient for highly connected data.


Different Applications of Graph Database

1. Social Networks

  • Storing users as nodes and friendships/connections as edges
  • Efficiently querying friend recommendations, mutual connections, and social circles
  • Example: Facebook, LinkedIn connection graphs

2. Recommendation Systems

  • Representing users, products, and their interactions as nodes and edges
  • Analyzing purchase patterns and user preferences to recommend products
  • Example: Netflix recommendations, Amazon product suggestions

3. Knowledge Graphs

  • Organizing information about entities and their relationships
  • Semantic search and intelligent question answering
  • Example: Google Knowledge Graph, Wikipedia relationships

4. Network and IT Operations

  • Mapping network topology with devices as nodes and connections as edges
  • Identifying network bottlenecks and dependencies
  • Troubleshooting and impact analysis

5. Fraud Detection

  • Analyzing transaction patterns and relationships between accounts
  • Identifying suspicious networks and money laundering schemes
  • Detecting fraudulent behavior through relationship analysis

6. Identity and Access Management

  • Managing user roles, permissions, and resource access
  • Tracking authorization hierarchies and dependencies
Open this answer on its own page →

0 · 5 marks

Discuss about graph processing and graph database. [5]

Graph processing refers to the computational techniques and frameworks used to analyze, query, and manipulate graph-structured data. It involves: - Operations on graphs: traversal, pathfinding, pattern matching, aggregation, and transformation - Distributed processing: handling large-scale graphs...

Open this answer on its own page →

Data lake advantages

2080 · 5 marks

What are the advantages of using a data lake? Explain. [5]

A data lake is a centralized repository that stores vast amounts of raw, structured, and unstructured data in its native format. Here are the key advantages: - Data lakes can store data in any format (structured, semi-structured, unstructured) without requiring predefined schemas - Easily scalabl...

Open this answer on its own page →

Fast data processing and streaming issues

2080 · 5 marks

List the issues in fast data processing and streaming in cloud. [5]

Since reference notes are not provided, this answer draws on standard cloud computing and big data concepts relevant to BSc CSIT curriculum. - Streaming data arrives continuously and must be processed with minimal delay - Network latency between data sources and cloud infrastructure can impact pr...

Open this answer on its own page →