-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Hands-On Microservices with Kotlin
By :

You may be familiar with SQL databases since they are probably the most common database model used on millions of applications. But NoSQL databases are widely used in the industry due to their capabilities, and they can be easily integrated into our microservices. In this section, we will learn about them and how we can use MongoDB as a repository for the data required by our microservices.
To understand what a NoSQL database is, we first need to understand what a SQL database is. In a SQL database, the data is organized in a tabular manner. We have different tables representing collections on our database, and each of these tables contain a set of columns that define them; those columns may have attributes such as what kind of data it can store.
In each of those tables, we may have rows that represent entries in each collection. The tables themselves may have other attributes, such as indexes or keys, that allow us to search or point to particular elements...