RDBMS vs NoSQL

In this topic i will show the difference between RDBMS and NoSQL.

TopicsRDBMSNoSQL
FormalizationFormalizazion must be respected to get consitent dataIt does not need to respect formalization
Integrity constraintRelation data consists in primary foreign keysIt support integrity but is not mandatory.
Data StructureData is composed with Table, Row and relations between data.Data consists in key-value pairs or json data.
Schema and modelsData is less flexible and must live with fixes columns and data types.Data can be unstructured or can have dynamic schema.
ScalingVertical scaling is quite easy but horizontal scale demands more effrotsVertical and horizontal scale are more flexible.

The next table will help you understand the transition from RDBMS to NoSQL.

RDBMSNoSQL
DatabaseDatabase
TableCollection
RowDocument
IndexIndex
Foreign KeyReference