Categories

Advertisement
⏱️ 5 min read

Database System Architecture in Hindi | 1 Tier, 2 Tier, 3 Tier & 3 Schema Explained

N
By NotesMind
Advertisement

Introduction (परिचय)

आज के digital era में हर application — जैसे banking apps, e-commerce websites, social media platforms — एक database system पर depend करती है।

लेकिन क्या आपने कभी सोचा है कि ये database system internally कैसे काम करता है?

इसका जवाब है Database System Architecture।


Simple Definition

Database system architecture वह structure है जो database system को अलग-अलग components और layers में divide करता है ताकि उसे आसानी से manage, modify और scale किया जा सके।


Database Architecture का उद्देश्य (Purpose)

Database architecture का मुख्य उद्देश्य है:

  • System को modular बनाना
  • Data management को efficient बनाना
  • Security improve करना
  • Changes को आसान बनाना
  • Performance optimize करना

सरल शब्दों में:
Architecture हमें database system को समझने और control करने में मदद करता है।


Database Architecture को कैसे study किया जाता है?

Database architecture को मुख्यतः 2 तरीकों से समझा जाता है:

  1. Layers of Abstraction के आधार पर
  2. Data Representation के आधार पर

Tier Based Architecture (टियर आधारित आर्किटेक्चर)

Tier architecture database system को अलग-अलग layers में divide करता है।

Types of Tier Architecture:

  • 1-Tier Architecture
  • 2-Tier Architecture
  • 3-Tier Architecture

1-Tier Architecture (Single Layer)

Definition:

इस architecture में database directly user के लिए available होता है।

User सीधे database के साथ interact करता है।

Features:

  • No middle layer
  • Direct access
  • Simple structure

Example:

  • MS Access
  • Local applications

Advantages:

  • Fast performance
  • Simple setup

Disadvantages:

  • Low security
  • Not suitable for large systems

2-Tier Architecture (Client-Server Model)

Definition:

इसमें client और database server के बीच direct communication होता है।

Working:

  • Client side → UI + Application logic
  • Server side → Database + DBMS

Features:

  • Client-server communication
  • Query processing server पर

Advantages:

  • Better security than 1-tier
  • Efficient data management

Disadvantages:

  • Limited scalability
  • Server पर ज्यादा load

3-Tier Architecture (Modern Architecture)

Definition:

इस architecture में 3 layers होती हैं:

  • Client (Presentation Layer)
  • Application Server (Business Logic Layer)
  • Database Server (Data Layer)

Working:

  • Client request भेजता है
  • Application Server process करता है
  • Database data provide करता है

Features:

  • High security
  • Scalability
  • Modular design

Advantages:

  • Large applications के लिए best
  • Secure communication
  • Easy maintenance

Disadvantages:

  • Complex setup
  • Cost ज्यादा

यह architecture modern websites (Amazon, Flipkart) में use होता है।


Important Note

1-tier, 2-tier और 3-tier में से 3-tier architecture सबसे ज्यादा secure और scalable होता है।


3-Schema Architecture (Three Level Architecture)

Definition:

3-schema architecture database को 3 different levels में divide करता है ताकि user view और physical storage अलग रहे।


Levels of Abstraction

1. External Level (View Level)

  • User का view
  • Highest abstraction level
  • User specific data
  • Sensitive data hide किया जा सकता है

Example:
Student केवल marks देखता है, Admin पूरा data


2. Conceptual Level (Logical Level)

  • पूरा database structure
  • Entities, attributes, relationships
  • Constraints define

Note: पूरे database के लिए एक ही conceptual schema होता है।


3. Physical Level (Internal Level)

  • Data physically कैसे store होता है
  • Indexing
  • File organization

Mapping (Levels के बीच connection)

  • External ↔ Conceptual
  • Conceptual ↔ Internal

Mapping ensure करता है कि changes से user प्रभावित न हो।


Data Independence (डेटा स्वतंत्रता)

Definition:

एक level में change करने से दूसरे level पर असर नहीं पड़ता।


Types:

1. Logical Data Independence

Conceptual schema change होने पर user view प्रभावित नहीं होता।

2. Physical Data Independence

Storage change होने पर logical structure प्रभावित नहीं होता।


Importance of Data Independence

  • System flexible बनता है
  • Maintenance आसान होता है
  • Performance improve होती है
  • User unaffected रहता है

Need of 3-Schema Architecture

  • Multiple users same data access कर सकें
  • Data view customize हो सके
  • Physical details hide रहें
  • Changes का impact कम हो
  • Security improve हो

Physical Level Details

  • Storage allocation
  • Indexing
  • Record placement
  • Data compression
  • Encryption

Conceptual Level Details

  • Entities
  • Attributes
  • Relationships
  • Constraints
  • Security rules

View Level Details

  • User specific data
  • Unnecessary data hide
  • Easy interface

Real-Life Example

College Database System:

  • Student → केवल marks
  • Teacher → attendance + marks
  • Admin → पूरा database

Conclusion (निष्कर्ष)

Database system architecture database को:

  • Organized
  • Secure
  • Scalable
  • Efficient

बनाता है।


FAQ – Database Architecture in Hindi

1. Database Architecture क्या है?

Database Architecture database system का structure होता है जो इसे अलग-अलग layers और components में divide करता है।


2. Tier Architecture क्या होता है?

Tier Architecture database को layers में divide करता है जैसे 1-tier, 2-tier और 3-tier।


3. 3-Tier Architecture क्यों important है?

यह सबसे secure, scalable और flexible architecture होता है जो modern applications में use होता है।


4. 3-Schema Architecture क्या है?

यह database को 3 levels (External, Conceptual, Physical) में divide करता है ताकि abstraction और data independence मिले।


5. Data Independence क्या होती है?

एक level में change करने पर दूसरे level पर असर न पड़ना data independence कहलाता है।


6. Logical और Physical Data Independence में क्या अंतर है?

Logical data independence में conceptual changes का असर user view पर नहीं पड़ता, जबकि physical independence में storage changes का असर logical structure पर नहीं पड़ता।


7. Conceptual Level क्या होता है?

यह database का पूरा logical structure define करता है जिसमें entities, attributes और relationships शामिल होते हैं।


8. External Level क्या होता है?

यह user view होता है जिसमें user को केवल जरूरी data दिखता है।


9. Physical Level क्या होता है?

यह level बताता है कि data disk में physically कैसे store होता है।


10. Database Architecture क्यों जरूरी है?

यह system को efficient, secure, scalable और manageable बनाता है।


 

Advertisement

💬 Leave a Comment & Rating