And then your webserver has to service 1000 requests per second and it goes down every 10 seconds. It is not just the loading of the module that needs to be taken into account, but also the time spent in cleanly destroying the child workers and restarting them. That can actually take a lot longer and thus you want to keep the total time as short as possible, by avoiding long loading times of modules. Every second saved helps.It is just a gut feeling, but a database solution feels more efficient to me.
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] |