Node.js · Senior · Question 59 of 75

Why should a horizontally scaled Node.js service be stateless?

Explanation

In-memory sessions or local uploads break when the next request goes to another instance or the pod restarts.

Further reading

Problem with a question

Node.js · Senior · question 59

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz