Have a Database User for each Express Route - Best Practices for Backend Application with Postgres

The Backend Engineering Show with Hussein Nasser

Episode | Podcast

Date: Mon, 06 Jul 2020 22:55:08 GMT

<p>This is a question from one of you guys that I thought I'd answer in its own video since its loaded. &nbsp;Q/A - Shark Beak I currently have the same setup for my side project. What do you think about having a 'create table if not exist' running on startup that creates this table? Good/bad? &nbsp;&nbsp;&nbsp;It is always a good idea to have a specific database user for each route with specific permissions and use connection pooling as much as possible.</p>