Too often, when an application fails on memory or performs poorly, the immediate solution would be upgrading the machine.
Add more cores, more memory - And think that this would clear the problem from under the rug.
This strategy actually causes even more damage - As you will have to deal with the real issue (YOUR CODE...) later, when the system has more data, more angry clients, and more code that breaks.
If your application consumes too much CPU, you should profile it and solve the problem.
If your application leaks memory, you should find out where.
Taking the lazy approach would cause you credibility issues once you will really need that upgrade.
No comments:
Post a Comment