Skip to content

Commit

Permalink
docs: update data layer
Browse files Browse the repository at this point in the history
  • Loading branch information
marwfair committed Jul 9, 2024
1 parent c90bea4 commit 6f19ed0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/content/docs/architecture/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ Layered architecture is used at VGV to build highly scalable, maintainable, and

### Data layer

This is the lowest layer of the stack. It is the layer that is closest to the retrieval of data, hence the name. The data layer should be free of any specific domain or business logic. Ideally, packages within the data layer could be plugged into unreleated projects that need to retrieve data from the same sources.
This is the lowest layer of the stack. It is the layer that is closest to the retrieval of data, hence the name.

#### Responsibility

The data layer is responsible for retrieving raw data from external sources and making it available to the domain layer. Examples of these external sources include a SQLite database, local storage, Shared Preferences, GPS, battery data, file system, or a RESTful API.
The data layer is responsible for retrieving raw data from external sources and making it available to the [domain layer](#domain-layer). Examples of these external sources include an SQLite database, local storage, Shared Preferences, GPS, battery data, file system, or a RESTful API.

The data layer should be free of any specific domain or business logic. Ideally, packages within the data layer could be plugged into unreleated projects that need to retrieve data from the same sources.

### Domain layer

Expand Down

0 comments on commit 6f19ed0

Please sign in to comment.