If we talk about Databases with NestJS you probably already made some connection with MongoDB and mongoose or MySQL and typeorm.

But if we talk about Serverless with AWS I highly recommend to test DynamoDB.

Why DynamoDB?

“Amazon DynamoDB is a key-value and document database that delivers single-digit millisecond performance at any scale. It’s a fully managed, multiregion, multimaster, durable database with built-in security, backup and restore, and in-memory caching for internet-scale applications. DynamoDB can handle more than 10 trillion requests per day and can support peaks of more than 20 million requests per second.”

So it’s fast! Really fast, you can find more information on the page that I posted here.

We are going to connect our Serverless NestJS App with our Dynamo DB.

The objective of this article is that you can connect your NestJS Serverless application with DynamoDB, I will leave you the link to the repository where you can see all the code so that you can download and use it, remember that you must configure an AWS account using the command:

aws configure

We are going to create a simple application with 2 endpoints, the first one to create an order with a title and a category and the second one to get a created order by id.

#serverless #aws #nest #databases #developer

Serverless NestJS with AWS DynamoDB
35.95 GEEK