Principles

Please note: This section needs updating

Strata Data offers a standardised way to read and manipulate data from external sources. Its aim is to make working with data easier.

Architecture

Strata Data has a lightweight architecture.

Data providers

Data comes from a Data source, for example a REST API.

You read data using a Data provider, this wraps up data reading functionality along with support for caching, decoding raw data, error handling, events and helpers to make development easier.

The data provider layer is custom and has methods that make sense for data retrieval.

Data history can be used to help determine if retrieved data has changed since last access.

Once data is returned from the data provider, it's ready to use. If returned data contains multiple values (e.g. a JSON array) then it is expected that data is accessible from the data provider as an array.

See data providers, caching and data history.

Validating data

You can validate data to check it is valid. It is recommended to validate source data before it has been modified, this can help when reporting any errors back to the data provider.

See validating data.

Changing data

Data can be modified via transformers or mappers. Transformers change data, while mappers map data to a new array or object.

Mappers can also build collections along with automated pagination.

See changing data.

Last updated