SlideShare a Scribd company logo
Distributed System
Distributed database
using
RMI and JDBC
Presentation by: Iqra Khalil
Distributed system
• A Distributed system
has components
located at networked
computers that
communicate and
coordinate by passing
messages and do not
share the common
memory.
• Relation b/w distributed system
and computer architecture
Computer
Architecture
Tightly
Couple
Loosely
Couple
Distributed
System
3As
• ABOUT:
What is DS about?
 Fault tolerance
• Awesome:
 Heterogeneity of components
 Openness
 Scalability
 Failure handling
 Concurrency of components
 Transparency
That’s why it every where
Google , Amazon cloud , Skype ,Facebook , bit torrent, www, intranet
• Aware:
Have to awareness of this field.
HISTORY
 1945-1980
− Computers were large and expensive.
− No way to connect them.
− All systems were Centralized Systems.
 Mid-1980s
− Powerful microprocessors.
− High Speed Computer Networks (LANs , WANs).
HISTORY
Then came the
DISTRIBUTED
SYSTEMS…
TYPES OF D.S.
• Distributed Computing Systems.
−Cluster Computing Systems.
−Grid Computing Systems.
• Distributed Information Systems.
• Distributed Pervasive Systems.
DISTRIBUTED COMPUTING SYSTEMS
Cluster Computing Systems
• Goal: High performance computing tasks.
Cluster Computing Systems:
 A computer cluster consists of a set of loosely or tightly
connected computers that work together so that, in many
respects, they can be viewed as a single system. Unlike
grid computers, computer clusters have each node set to
perform the same task, controlled and scheduled by software.
Most common use: a single program is run in
parallel on multiple machines
DISTRIBUTED COMPUTING SYSTEMS
Grid Computing Systems
Grid Computing Systems:
 Contrary to clusters, grids are usually composed of
different types of computers (hardware, OS, network,
security, etc.)
 At its most basic level, grid computing is a computernetwork in
which each computer's resources are shared with every
other computer in the system. Processing power, memory and data
storage are all community resources that authorized users can tap
into and leverage for specific tasks
 Resources from different organizations are brought
together to allow collaboration
 Examples: WWW…
DISTRIBUTED INFORMATION SYSTEMS
• Goal: Distribute information across several
Servers.
− Remote processes called Clients access the
servers to manipulate the information
− Different communication models are used. The
most usual are RPC (Remote Procedure Calls)
and the object oriented RMI (Remote Method
Invocations)
DISTRIBUTED INFORMATION SYSTEMS
−Often associated with Transaction systems
− Examples:
 Banks;
 Travel agencies;
 Rent-a-Cars’;
 Art Gallery
 ETC…
DISTRIBUTED PERVASIVE SYSTEMS
− These are the distributed systems involving
mobile and embedded computer devices like
Small, wireless, battery-powered devices (
smart phones, sensors, wireless surveillance
cams, portable ECG monitors, etc.)
− These systems characterized by their
“instability” when compared to more
“traditional” distributed systems
DISTRIBUTED PERVASIVE SYSTEMS
−Pervasive Systems are all around us, and
ideally should be able to adapt to the lack of
human administrative control:
 Automatically connect to a different network;
 Discover services and react accordingly;
 Automatic self configuration (E.g.: UPnP –
Universal Plug and Play)…
− Examples: Home Systems, Electronic Health
Care Systems, Sensor Networks, etc.
Middleware
• Provides location
transparency and
independence from the
details of the
communication
protocols, operating
systems and
computer hardware.
• logic
Middleware Technologies
• RPC
• CORBA
• COM/DCOM
• RMI
• Others
SOA , Ajax, jquery ,json
RPC
• Introduce in c language
and Unix operating
system.
• A client program calls a
procedure in another
program running
in a server process
RPC Architecture
CORBA
• Problem in distributed
system.
1-Different operating system.
2-Different languages.
Solution:
Common request broker
architecture.
• Goal:
Provide language
independency
Platform independent.
Distributed System
Distributed System
COM/DCOM
• COM/DCOM (Distributed Component Object Model)
is a set of Microsoft concepts and program interfaces
in which client program object s can request services
from server program objects on other computers in a
network.
• Goal:
Language independence
VC++ ,VB , VBScript
Distributed System
RMI
• The RMI (Remote Method Invocation)
provides a mechanism to create distributed
application in java. The RMI allows an object
to invoke methods on an object running in
another JVM.
• Goal:
Platform independency
Distributed System
Stub
• The stub is an object, acts as a gateway for the client side. All
the outgoing requests are routed through it. It resides at the
client side and represents the remote object. When the caller
invokes method on the stub object, it does the following
tasks:
• It initiates a connection with remote Virtual Machine (JVM),
• It writes and transmits (marshals) the parameters to the
remote Virtual Machine (JVM),
• It waits for the result
• It reads (unmarshals) the return value or exception, and
• It finally, returns the value to the caller.
Skeleton
• The skeleton is an object, acts as a gateway for the
server side object. All the incoming requests are
routed through it. When the skeleton receives the
incoming request, it does the following tasks:
• It reads the parameter for the remote method
• It invokes the method on the actual remote object,
and
• It writes and transmits (marshals) the result to the
caller.
Distributed Database
• A distributed database (DDB) is a collection of multiple,
logically interrelated databases. distributed over a computer
network.
• A distributed database management system (DDBMS) is the
software that manages the DDB and provides an access
mechanism that makes this distribution transparent to. the
users.
Distributed System
Centralize vs. distributed database
• Centralize
A single central database
accessed by multiple
users.
+ Easier to organise, edit,
query and backup.
- Can be slower because
of high usage / load.
Centralize vs. distributed database
• Distributed
Database split into multiple
files.
+ Data access and retrieval
faster at nearest points
- Need to be ensure data is
consistent / synchronised
JDBC
• Java JDBC is a java API to connect and execute query with the
database. JDBC API uses jdbc drivers to connect with the
database.
• The JDBC API consists of the following core parts:
• JDBC Drivers
• Connections
• Statements
• Result Sets
JDBC
• There are four basic JDBC use cases around which most JDBC work
evolves:
 Query the database (read data from it).
 Update the database.
 Perform transactions.
JDBC- Drivers
A JDBC driver is a collection of Java classes that
enables you to connect to a certain database.
For instance, MYSQL will have its own JDBC
driver. A JDBC driver implements a lot of the
JDBC interfaces. When your code uses a given
JDBC driver, it actually just uses the standard
JDBC interfaces. The concrete JDBC driver used
is hidden behind the JDBC interfaces.
JDBC-CONNECTIONS
• Once a JDBC driver is loaded and initialized,
you need to connect to the database. You do
so by obtaining a Connection to the database
via the JDBC API and the loaded driver. All
communication with the database happens
via a connection. An application can have
more than one connection open to a database
at a time.
JDBC-STATEMENTS
• A Statement is what you use to execute
queries and updates against the database.
There are a few different types of statements
you can use. Each statement corresponds to a
single query or update.
JDBC-RESULT SETS
• When you perform a query against the database you
get back a Result Set. You can then traverse
this Result Set to read the result of the query.
Distributed System

More Related Content

PPT
Distributed computing
PPTX
Distributed operating system
PPTX
Distributed Computing system
PPTX
History and Evolution of Cloud computing (Safaricom cloud)
PPTX
Physical layer OSI Model & Transmission Media
PPTX
Network Virtualization
PPT
Communications is distributed systems
PPTX
Load balancing
Distributed computing
Distributed operating system
Distributed Computing system
History and Evolution of Cloud computing (Safaricom cloud)
Physical layer OSI Model & Transmission Media
Network Virtualization
Communications is distributed systems
Load balancing

What's hot (20)

PPTX
Grid computing standards
PDF
Service-Oriented Architecture (SOA)
PPTX
Ppt of routing protocols
PPTX
Cloud service models
PPTX
Eucalyptus cloud computing
PPTX
Storage Area Network(SAN)
PPTX
Cloud Computing Principles and Paradigms: 7 enhancing cloud computing environ...
PPT
Cloud computing What Why How
PPTX
Database , 4 Data Integration
PPTX
Service level agreement in cloud computing an overview
PPT
Cloud deployment models
PPTX
Grid protocol architecture
PPTX
Transport control protocols for Wireless sensor networks
PPTX
Distributed computing
PPTX
Communication in Distributed Systems
PPTX
Hypervisor
PPT
Clock synchronization in distributed system
PPTX
Cloud Management Mechanisms
PDF
Trend and Future of Cloud Computing
Grid computing standards
Service-Oriented Architecture (SOA)
Ppt of routing protocols
Cloud service models
Eucalyptus cloud computing
Storage Area Network(SAN)
Cloud Computing Principles and Paradigms: 7 enhancing cloud computing environ...
Cloud computing What Why How
Database , 4 Data Integration
Service level agreement in cloud computing an overview
Cloud deployment models
Grid protocol architecture
Transport control protocols for Wireless sensor networks
Distributed computing
Communication in Distributed Systems
Hypervisor
Clock synchronization in distributed system
Cloud Management Mechanisms
Trend and Future of Cloud Computing
Ad

Viewers also liked (12)

PPTX
Grpc present
PPTX
Google Protocol buffer
PPTX
Restful web service
PPTX
Scheduling in distributed systems - Andrii Vozniuk
PPT
Rpc (Distributed computing)
PDF
بیگ دیتا
PDF
Distributed Systems Done Right: Why Java Enterprises Are Embracing The Actor ...
PPT
Distributed objects & components of corba
PPTX
Introduction to Remote Procedure Call
PDF
RPC에서 REST까지 간단한 개념소개
PPT
Distributed & parallel system
PPTX
An introduction to fundamental architecture concepts
Grpc present
Google Protocol buffer
Restful web service
Scheduling in distributed systems - Andrii Vozniuk
Rpc (Distributed computing)
بیگ دیتا
Distributed Systems Done Right: Why Java Enterprises Are Embracing The Actor ...
Distributed objects & components of corba
Introduction to Remote Procedure Call
RPC에서 REST까지 간단한 개념소개
Distributed & parallel system
An introduction to fundamental architecture concepts
Ad

Similar to Distributed System (20)

PPTX
UNIT V DIS.pptx
PPTX
Distributed Data Base.pptx
PDF
SingleLecture.pdf
PPT
1.intro. to distributed system
PPTX
Distributed Databases - Concepts & Architectures
PPTX
Lecture 1 ddbms
PPTX
PPT ON PPT ON SOFTWARE ARCHITECTURE module5
PDF
005281271.pdf
PPTX
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
PPTX
Distributed dbms (ddbms)
PPTX
Advanced Topics on Database - Unit-1 AU17
PDF
3 f6 9_distributed_systems
PPTX
2. Types of distributed systems ssssssssss.pptx
PPTX
Distributed Storage in advanced database.pptx
PPTX
DDBMS.pptx
PPTX
Case study 9
PPTX
Adbms 26 architectures for a distributed system
PPTX
1- Introduction for software engineering
PPTX
Database-management-system-dbms-ppt.pptx
PPT
Distributed Systems
UNIT V DIS.pptx
Distributed Data Base.pptx
SingleLecture.pdf
1.intro. to distributed system
Distributed Databases - Concepts & Architectures
Lecture 1 ddbms
PPT ON PPT ON SOFTWARE ARCHITECTURE module5
005281271.pdf
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed dbms (ddbms)
Advanced Topics on Database - Unit-1 AU17
3 f6 9_distributed_systems
2. Types of distributed systems ssssssssss.pptx
Distributed Storage in advanced database.pptx
DDBMS.pptx
Case study 9
Adbms 26 architectures for a distributed system
1- Introduction for software engineering
Database-management-system-dbms-ppt.pptx
Distributed Systems

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
human mycosis Human fungal infections are called human mycosis..pptx
Insiders guide to clinical Medicine.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Microbial diseases, their pathogenesis and prophylaxis
102 student loan defaulters named and shamed – Is someone you know on the list?
Abdominal Access Techniques with Prof. Dr. R K Mishra
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Microbial disease of the cardiovascular and lymphatic systems
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
VCE English Exam - Section C Student Revision Booklet
Anesthesia in Laparoscopic Surgery in India
PPH.pptx obstetrics and gynecology in nursing
Final Presentation General Medicine 03-08-2024.pptx
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

Distributed System

  • 1. Distributed System Distributed database using RMI and JDBC Presentation by: Iqra Khalil
  • 2. Distributed system • A Distributed system has components located at networked computers that communicate and coordinate by passing messages and do not share the common memory. • Relation b/w distributed system and computer architecture Computer Architecture Tightly Couple Loosely Couple Distributed System
  • 3. 3As • ABOUT: What is DS about?  Fault tolerance • Awesome:  Heterogeneity of components  Openness  Scalability  Failure handling  Concurrency of components  Transparency That’s why it every where Google , Amazon cloud , Skype ,Facebook , bit torrent, www, intranet • Aware: Have to awareness of this field.
  • 4. HISTORY  1945-1980 − Computers were large and expensive. − No way to connect them. − All systems were Centralized Systems.  Mid-1980s − Powerful microprocessors. − High Speed Computer Networks (LANs , WANs).
  • 6. TYPES OF D.S. • Distributed Computing Systems. −Cluster Computing Systems. −Grid Computing Systems. • Distributed Information Systems. • Distributed Pervasive Systems.
  • 7. DISTRIBUTED COMPUTING SYSTEMS Cluster Computing Systems • Goal: High performance computing tasks. Cluster Computing Systems:  A computer cluster consists of a set of loosely or tightly connected computers that work together so that, in many respects, they can be viewed as a single system. Unlike grid computers, computer clusters have each node set to perform the same task, controlled and scheduled by software. Most common use: a single program is run in parallel on multiple machines
  • 8. DISTRIBUTED COMPUTING SYSTEMS Grid Computing Systems Grid Computing Systems:  Contrary to clusters, grids are usually composed of different types of computers (hardware, OS, network, security, etc.)  At its most basic level, grid computing is a computernetwork in which each computer's resources are shared with every other computer in the system. Processing power, memory and data storage are all community resources that authorized users can tap into and leverage for specific tasks  Resources from different organizations are brought together to allow collaboration  Examples: WWW…
  • 9. DISTRIBUTED INFORMATION SYSTEMS • Goal: Distribute information across several Servers. − Remote processes called Clients access the servers to manipulate the information − Different communication models are used. The most usual are RPC (Remote Procedure Calls) and the object oriented RMI (Remote Method Invocations)
  • 10. DISTRIBUTED INFORMATION SYSTEMS −Often associated with Transaction systems − Examples:  Banks;  Travel agencies;  Rent-a-Cars’;  Art Gallery  ETC…
  • 11. DISTRIBUTED PERVASIVE SYSTEMS − These are the distributed systems involving mobile and embedded computer devices like Small, wireless, battery-powered devices ( smart phones, sensors, wireless surveillance cams, portable ECG monitors, etc.) − These systems characterized by their “instability” when compared to more “traditional” distributed systems
  • 12. DISTRIBUTED PERVASIVE SYSTEMS −Pervasive Systems are all around us, and ideally should be able to adapt to the lack of human administrative control:  Automatically connect to a different network;  Discover services and react accordingly;  Automatic self configuration (E.g.: UPnP – Universal Plug and Play)… − Examples: Home Systems, Electronic Health Care Systems, Sensor Networks, etc.
  • 13. Middleware • Provides location transparency and independence from the details of the communication protocols, operating systems and computer hardware. • logic
  • 14. Middleware Technologies • RPC • CORBA • COM/DCOM • RMI • Others SOA , Ajax, jquery ,json
  • 15. RPC • Introduce in c language and Unix operating system. • A client program calls a procedure in another program running in a server process
  • 17. CORBA • Problem in distributed system. 1-Different operating system. 2-Different languages. Solution: Common request broker architecture. • Goal: Provide language independency Platform independent.
  • 20. COM/DCOM • COM/DCOM (Distributed Component Object Model) is a set of Microsoft concepts and program interfaces in which client program object s can request services from server program objects on other computers in a network. • Goal: Language independence VC++ ,VB , VBScript
  • 22. RMI • The RMI (Remote Method Invocation) provides a mechanism to create distributed application in java. The RMI allows an object to invoke methods on an object running in another JVM. • Goal: Platform independency
  • 24. Stub • The stub is an object, acts as a gateway for the client side. All the outgoing requests are routed through it. It resides at the client side and represents the remote object. When the caller invokes method on the stub object, it does the following tasks: • It initiates a connection with remote Virtual Machine (JVM), • It writes and transmits (marshals) the parameters to the remote Virtual Machine (JVM), • It waits for the result • It reads (unmarshals) the return value or exception, and • It finally, returns the value to the caller.
  • 25. Skeleton • The skeleton is an object, acts as a gateway for the server side object. All the incoming requests are routed through it. When the skeleton receives the incoming request, it does the following tasks: • It reads the parameter for the remote method • It invokes the method on the actual remote object, and • It writes and transmits (marshals) the result to the caller.
  • 26. Distributed Database • A distributed database (DDB) is a collection of multiple, logically interrelated databases. distributed over a computer network. • A distributed database management system (DDBMS) is the software that manages the DDB and provides an access mechanism that makes this distribution transparent to. the users.
  • 28. Centralize vs. distributed database • Centralize A single central database accessed by multiple users. + Easier to organise, edit, query and backup. - Can be slower because of high usage / load.
  • 29. Centralize vs. distributed database • Distributed Database split into multiple files. + Data access and retrieval faster at nearest points - Need to be ensure data is consistent / synchronised
  • 30. JDBC • Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database. • The JDBC API consists of the following core parts: • JDBC Drivers • Connections • Statements • Result Sets
  • 31. JDBC • There are four basic JDBC use cases around which most JDBC work evolves:  Query the database (read data from it).  Update the database.  Perform transactions.
  • 32. JDBC- Drivers A JDBC driver is a collection of Java classes that enables you to connect to a certain database. For instance, MYSQL will have its own JDBC driver. A JDBC driver implements a lot of the JDBC interfaces. When your code uses a given JDBC driver, it actually just uses the standard JDBC interfaces. The concrete JDBC driver used is hidden behind the JDBC interfaces.
  • 33. JDBC-CONNECTIONS • Once a JDBC driver is loaded and initialized, you need to connect to the database. You do so by obtaining a Connection to the database via the JDBC API and the loaded driver. All communication with the database happens via a connection. An application can have more than one connection open to a database at a time.
  • 34. JDBC-STATEMENTS • A Statement is what you use to execute queries and updates against the database. There are a few different types of statements you can use. Each statement corresponds to a single query or update.
  • 35. JDBC-RESULT SETS • When you perform a query against the database you get back a Result Set. You can then traverse this Result Set to read the result of the query.