O
O
olezhenka2017-04-15 21:30:34
JavaScript
olezhenka, 2017-04-15 21:30:34

Why does post request processing take a long time in node js?

It used to work fine, I received POST requests and my server processed them instantly, now I reinstalled everything on the server and I receive requests, but now it takes 10 seconds to process them. Why is that? This is a very big problem in my case.
the script is on port 80,
maybe some stupid question, but I can't figure out what's wrong. Help me please!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Deodatuss, 2017-04-15
@Deodatuss

is the node running on sale? or locally under Windows? many factors. Has the code changed? If yes, what exactly? It is impossible to help you with current information.

P
Puma Thailand, 2017-04-17
@opium

well, look at the profiling of the script
, and it often happens because of dns requests, well, or there are slow queries in the database
, and probably the reason lies in why you reinstalled everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question