DEV Community

Discussion on: What would your tech stack of choice be for a new web dev project?

Collapse
 
ochsec profile image
Chris Ochsenreither

Database: DynamoDB
API: AWS Gateway API w/ Lambdas (any language)
Auth: AWS IAM
Frontend: NextJS on Vercel
CSS: Ask my web designer

All of this will scale automatically, requires no dedicated servers and is served from edge locations.

Collapse
 
devfranpr profile image
DevFranPR

Love the "Ask my web designer" part :')

Collapse
 
menottiricardo profile image
menottiRicardo

Can you give a little more detail on the Api? I've wanted to try that combo but I'm not sure about the cold start

Collapse
 
ochsec profile image
Chris Ochsenreither • Edited

Cold starts can be long for interpreted languages like Python, Node.js and Ruby. Here's a comparison of 20 lambda executions from cold start where a user is created:

Create User

Payload:

{
    "email_address": "jonathon.doe@hotmail.com",
    "first_name": "Jonathon",
    "last_name": "Doe",
    "password": "vaFR6z2D8xstaao4EyvP"
}
Enter fullscreen mode Exit fullscreen mode
Metric Duration (ms) Duration (ms) Memory Used (MB) Memory Used (MB)
Trial Node.js 14.x Python 3.7 Node.js 14.x Python 3.7
1 753 203 80 69
2 408 17 82 69
3 9 35 82 69
4 39 30 82 69
5 22 34 82 69
6 18 28 82 60
7 21 36 82 69
8 8 35 82 69
9 28 43 82 69
10 10 31 82 70
11 9 21 82 70
12 7 38 82 70
13 23 36 82 70
14 8 33 82 70
15 8 21 82 70
16 17 43 82 70
17 22 27 82 70
18 22 43 82 70
19 8 68 82 70
20 8 12 82 70
Sum 148 834 1638 1391
Average 72.4 41.7 81.9 70
Median 17.5 34.5 82 70
Thread Thread
 
menottiricardo profile image
menottiRicardo

thanks a lot for that info, are you using Express or Nest for Nodejs?

Thread Thread
 
ochsec profile image
Chris Ochsenreither • Edited

I'm not using a framework for these functions. API Gateway provides the url REST endpoints and those endpoints are linked to event handler functions. The functions are stand-alone and just import the packages required within the function.