Loading…

Why we have to keep separate Express app and server?

Express app encapsulates your API logical, which is your data abstraction. This is where you should keep up your DB logic or data models.

The server should be differently handled as its sole responsibility is to keep the app/website running. The separation of concerns will lead to optimization.

Suggest An Answer

No suggestions avaliable!

Latest post from Node js Interview Questions

Ask Question