Promises are very simple once you get your head around them, but there are a few gotchas that can leave you with your head scratching. Here are a few that got me.
Lately during development at one of our clients, Ravello Systems, we decided we wanted better HTTP error handling.
Basically, our perfect solution would have generic handlers for errors, and most calls in the code will not have to do any special work for handling errors. This means that things like authentication problems, server unavailability issues, etc. will be handled in one place — like adding a generic “something went wrong” modal.
In the Web development world, we often have the problem of choosing the right server to use in the production environment of a Web application.
Maybe we need to buy a new server to handle the expected load, or maybe the customer wants to deploy in an existing server.
In any case, if after deploying and running the application it will show poor performance, then we need to ask the team what we can do to make the application faster or use a better server.
Therefore we need to determine if the application is performing well. Read this article to learn how to quickly determine the performance of an application on the current server.