---
title: "Differentiate between connected and disconnected architecture."  
description: "Differentiate between connected and disconnected architecture."  
author: "Anonymous User"  
published: 2020-01-22  
updated: 2020-01-22  
canonical: https://www.mindstick.com/forum/155719/differentiate-between-connected-and-disconnected-architecture  
category: "c#"  
tags: ["c#"]  
reading_time: 4 minutes  

---

# Differentiate between connected and disconnected architecture.

Please give me brief [explanation](https://yourviews.mindstick.com/view/84608/what-are-hindenburg-s-allegations-against-adani-detailed-explanation) of [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between [connected](https://www.mindstick.com/articles/12941/link-building-and-search-engine-rankings-how-are-they-connected) and [disconnected](https://www.mindstick.com/blog/300962/how-modern-life-disconnected-from-nature) architecture.

## Replies

### Reply by Nishi Tiwari

## Connection Oriented Architecture

**\** The architecture which needs an open connection to access or fetech the data from the database is known as **[Connection-Oriented Architecture.](https://www.mindstick.com/forum/155720/what-is-datareader-and-dataset-in-c-sharp)**

Following are the classes on which Connection Oriented Architecture is built on:

- Connection

– Which is used to establish the connection between the front end and back end.

- Command

– Enables access to the database commands to return data, modify it, run the stored procedures, and send or retrieve parameter information.

- Data Reader

– Used to read the data from the Source. Provides a high-performance to data from data source.

- Data Adapter

–Works as a Mediator between the front end and back end which doesn’t have the feature of containing data within this, so it uses Dataset which is also a result set.

– It also provides a bridge between DataSet and data source.

–Uses Command Objects to execute commands.

As Connected architecture must needs a connection for every transaction and so creates much traffic to the database since it does many trips. It shows a very high impact on the performance when the transaction will have many commands i.e. for larger transactions. If it is working with smaller transactions it will be normally much faster.

![Differentiate between connected and disconnected architecture.](https://www.mindstick.com/mindstickforums/fb409eb9-f065-4d17-a76b-7a21f2d2437b/images/88587fb0-0440-4ee4-9e0d-3e819d89c9b9.png)\

## Disconnected Oriented Architecture

![Differentiate between connected and disconnected architecture.](https://www.mindstick.com/mindstickforums/fb409eb9-f065-4d17-a76b-7a21f2d2437b/images/eb4e6bb7-48ff-4760-b538-f86a9b827cff.png) **\**

In this architecture data can be retrieved from the database even when the connection gets disconnected or closed then it is known as Disconnected Oriented Architecture.

Following are classes on which disconnected architecture is built on:

- Command Builder – We can generate insert, update and delete commands on a single database table for a data adapter.
- Data Set – Contains the set of Data Tables (Data Table is a set of Data Rows and Data Columns)
- Data View – It is a view of the table available in DataSet which can be used to perform insert, update and delete commands in case of Data Set and can also be used to find, sort and filter the records.
- Disconnected architecture is a method by which we retrieve the result set from the database and giving the user ability to perform CRUD operations like insert, update and delete and also no traffic issues will also get occurred because even though the connection was gone we will get the data already stored into dataset object.
- By keeping connections open for only a minimum period of time, ADO .NET conserves system resources and also provides maximum security for databases and also has less impact on system performance.
- Any changes made to data in DataSet does not show the effect on the database directly, so to save the changes we need to use Update() method of Data Adapter.
- Can be used with multiple data sources, used with XML data, or also used to manage data local to the application.

![Differentiate between connected and disconnected architecture.](https://www.mindstick.com/mindstickforums/fb409eb9-f065-4d17-a76b-7a21f2d2437b/images/ddd948b1-c3ff-458e-9738-5e765a429964.png)

## Difference between Connected and disconnected architecture

## CONNECTED

It is connection oriented.

Connected gives faster performance.

Datareader is used as object

Connected can hold the data of single table only .

Connected we need to use a read only forward data reader.

Data Reader cannot persist the data.

It is Read only, so we can’t update the data.

## DISCONNECTED

It is disconnection oriented.

Disconnected gives low in speed and performance.

DataSet is used as object .

Disconnected can hold data of multiple tables .

In Disconnected we cannot use this.

Data Set can persist the data .

We can update the data easily.


---

Original Source: https://www.mindstick.com/forum/155719/differentiate-between-connected-and-disconnected-architecture

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
