Chapter 11. Server-Side Scripting
Server-side scripting in ServiceNow might seem easier than client-side scripting, because you don't have to worry about AJAX, asynchronicity, or large performance impacts for seemingly optimized queries. However, due to the expanded and slightly modified functionality of server-side JavaScript, there are a few additional pitfalls to be mindful of!
Scripts that run on the server, and the server-side APIs, provide a great deal of power and control to the developer that's equipped to use them properly; however, they can also put great strain on the server if used improperly. Infinite loops and poorly optimized queries in server-side scripts can be far more difficult to troubleshoot and resolve than client-side issues. They can also have much more far-reaching impact.
A client-side script error might just make a form a bit more difficult to use, but a server-side error might slow down the whole system or make large segments of functionality unavailable. It's best...