views
What is a DataBase
A database is structured information stored by a company and it is managed by the Administrator. A database can be associated with a few clients, each with its arrangement of freedoms.
There are two types of Databases
● SQL
● NoSQL
SQL-type databases store data in tabular format,
NoSQL-type databases store data in tree-like structures
SQL Database
An SQL database, often known as a relational database, is a form of database that stores statistics in tabular systems and permits the storage of structured information. Consider it as an Excel spreadsheet. SQL databases are used to store the data for both small and large-scale applications in development.
SQLite, MariaDB, PostgreSQL, MySQL, OracleDB, and many other SQL databases are popular.
NoSQL Database
A NoSQL database often called a non-relational database, enables the storing and manipulation of unstructured records. NoSQL databases are perfect for real-time net packages and massive quantities of records.
Redis, DynamoDB, Cassandra, MongoDB, Firebase, Couchbase, and other NoSQL databases are popular.
What is MongoDB?
MongoDB is a general-purpose, document-based distributed NoSQL database. It offers:
An enterprise edition is also available with direct support from MongoDB Inc.
A free and production-ready community version
MongoDB Atlas is a cloud database. Unlike other offerings, MongoDB Atlas is cloud-rationalist and can be sent to any significant cloud supplier with ensured accessibility and adaptability while adjusting to all the consistency and security principles. It likewise gives a free MongoDB cluster that can be utilized for Hybrid Mobile application development.
What is DynamoDB?
DynamoDB is a NoSQL database provided by the Amazon Web Service that supports key-value pair ad document data. This AWS cloud-only offering provides a highly available, scalable, and secure managed database platform for any application development. DynamoDB offers limited storage of 25 GB in the free tier AWS account
Installation and Set Up
There is a big difference between the installation and setup of the two databases. The installation of DynamoDB is very simple and easy. It starts with the creation of an AWS account for DynamoDB. Then you need to define some roles and policies and create a user that gives you a secret access ID and key.
On the other side, the MongoDB database installation and setup is difficult, especially for one who is new to the technology. It involves putting in place a server-starter document so customers can turn up the server whenever they want to work with the local database.
Security
DynamoDB comes with more security features out of the box as a part of AWS. It supports the AWS IAM Permission model and can also apply to it. DynamoDB is on the internet so we can also add a layer of security.
MongoDB likewise offers great security highlights, however not through its default settings. Intending that to increment security, you want to change the setup. In this manner, MongoDB isn’t exceptionally secure just after the default execution.
Data types
DynamoDB has only three types of data types string, binary, and number.
MongoDB has more than three types of data types namely: long, int, decimal128, date, floating-point, geospatial, and timestamp.
Document size
DynamoDB has a limit of just 400 KB
MongoDB will allow a maximum of 16 MB.
Querying data
DynamoDB offers insignificant query usefulness; essentially, it just permits key-value queries. Be that as it may, you can use corresponding AWS administrations, like Elastic MapReduce, to accomplish conglomeration and different kinds of additional refined inquiries.
MongoDB has its query language, which permits designers to dissect information in a wide assortment of ways (counting restricted joins, geospatial, and collections).
Data integrity
DynamoDB only offers eventual data consistency which can lead to unnoticed data losses
MongoDB offers strong data consistency.
Performance
DynamoDB has a latency issue because everything is on the internet.
MongoDB has no latency issue
Cost
DynamoDB can be more expensive;
MongoDB is less expensive in terms of service fees.