Bonus - Databases

01. Databases in development process

Developers need database for local development.

In your application code you configure the DB connectivity. You have to tell the library, WHICH DB to talk to and HOW to AUTHENTICATE with that DB.

DO NOT HARDCODE CREDENTIALS IN THE CODE

Define in 1 place as environment variables (or a .env file).

Depending on environment (dev, test, prod), connects to different DB. Each ahs different endpoints and credentials (PROD more secured).

Define a variable in code, and then set endpoint/credentials from outside for each environment.

Configure externally instead of hardcode.

DataBase Types

Key Value Databases

Wide Column Databases

| row key | column \n name | column \n age |
| mike | mike | 21 |

Document Databases

Document

"name": "Mike"
"age": 29

Relational Databases

Graph Databases

Nodes and Edges

Search Databases

Wrap Up