DEV Community

Discussion on: If TDD is Zen, adding Serverless brings Nirvana

Collapse
 
adnanrahic profile image
Adnan Rahić • Edited

Awesome write-up! I'll be using your TDD approach from now on for sure.

What about connection pooling, have you thought about ways it can be done? Opening and closing connections to the database all the time can easily overload the server it is running on.

From what I've hacked so far, caching the connection with mongoose seems to be the way to go.

Anyhow, great walkthrough! Happy to see more people experimenting with serverless architectures. 😁

Collapse
 
ledfusion profile image
Jordi

Thank you for your kind feedback, Adnan :)

I will be talking about connection pooling, mongoose, webpack and maybe end-to-end testing in episode 2, so stay tuned :)

Collapse
 
adnanrahic profile image
Adnan Rahić

Sweet! Will be looking forward to it.

Collapse
 
ledfusion profile image
Jordi

Hi again Adnan, here you have part #2: dev.to/ledfusion/if-tdd-is-zen-add.... I hope you like it!

BTW, I just saw your articles on Serverless as well, very nice work!
I will have a look on your article about migrating Rest API's ;)

Collapse
 
adnanrahic profile image
Adnan Rahić

Hey Jordi! Thank you, I've poured a lot of R&D into serverless POC apps. Have fun reading my stuff. I'll check out your next article right away. 😁