Q:

Is Async Await violates MVC for sails 1.0?

I have a question about the Sails 1.0 framework.
Sails is now using async and await technique, but previously it was just callbacks.
Which is the best to use nowadays?
What are the advantages and disadvantages of each?
Does using async and await violate the MVC flow of Sails?

A:

Async / await offers two main advantages:
1) With callbacks, unhandled errors will crash the process and bring the whole server down, which won't happen with async / await.
2) The code with async / await is cleaner because there is not the potential to have to deal with deeply nested callbacks.
There shouldn't be anywhere in your sails project where you are forced to use callbacks.

