After the latest great article on defensive programming techniques, Manuel Lemos posted today more good practice for defensive programming. This will give you a bunch of great techniques to prevent a curse from taking down your business. Today’s tips :
- Avoid accessing databases
- Cache Web pages
- Avoid needless personalization
- Queue tasks that may take too long
- Move images, CSS and Javascript to a multi-threaded Web server
- Minimize page serving time with page compression
- Put the Web, mail and database servers in different partitions
- Distribute the load when the servers limit is reached