2 ms·
It is a problem to maintain. Simple example: how do you remove sessions in a multi server environment? Well, you can set a config to do that at random which imp
by hermanradtke 6y ago
It is a problem to maintain. Simple example: how do you remove sessions in a multi server environment? Well, you can set a config to do that at random which imposes a cost for that particular request. Or you can run a corn job. This is not a decision in most other scripting languages.
Don’t get me started on concurrency either...
- bawolff 6y agoWhy is this not an issue in other scripting languages? You either delete at runtime or delete in a separate process. What other options are there?
- bouncycastle 6y agoThis is a decision in all scripting languages. PHP solves concurrency very well - it just passes the problem to the web server. If you need multithreading to service a http request then you are either doing something wrong, or over-engineering the problem. Other language platforms also service requests in a single thread, including Node.
- ec109685 6y agoNode though multiplexes more than one request at a time to a single thread / process and no built in ability to clean up after itself.