S
S
squadbrodyaga2020-10-22 13:56:21
Node.js
squadbrodyaga, 2020-10-22 13:56:21

What happens if you write the entire server in one file?

In general, I continue to study node js and one stupid question came to my mind, so I divided the site
into routes and middleware, but what will happen to performance if I write the entire server in one file?
Will it affect site speed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2020-10-22
@squadbrodyaga

It will affect readability and maintainability, it will not affect anything else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question