Saturday, 19 September 2020

Should I prefer fetch requests to internal routes, or plain function calls?

Say you have a verification step. you could setup a route like /verifyUser, and use it internally. Or you could just setup some verification functions and call them in other places.The internal route would be more modular. But i think also, a lot slower. I think I would stick to just calling methods from a verification class.Agree or disagree?When would be a good case to prefer internal routes instead?

Submitted September 19, 2020 at 05:32PM by javascript_dev

No comments:

Post a Comment