I understand that validations have to be done at the backend level for security, but what I want to do is the following, validate at the frontend level with angular, and thus make the server work less, say, but if I do it in the frontend the user could modify the script and everything it does, to be able to send what they want, then how could I make a function, in the backend that tells me that the user is validated, so he no longer has to do another validation again. Any ideas?.
Regarding my 2nd question, I am using nodejs to run a server with sessions stored in redis with express session, but when testing with loadtest npm, with 20 concurrent users I start getting errors that req.session is not found How could I improve session performance?
Validations in the back-end must always be done . The advantage of working in nodejs is that some validation routines can be programmed only once and they are the same ones that run in the backend and in the frontend (for example, that the mail is valid and from certain domains, the Javascript validamail function that programs for this can be used in both places).
Regarding savings :