Can you tell me how event driven programming minimizing request and saving call to server.
In languages like Java™ and PHP, each connection spawns a
new thread that potentially has an accompanying 2 MB of memory with it. On
a system that has 8 GB of RAM, that puts the theoretical maximum number of
concurrent connections at about 4,000 users.
I recently needed a way to do file type detection/inspection, but felt
dirty using a child process to call `file` every time. So tonight I
sat down and wrote an async binding to libmagic: https://github.com/mscdex/mmmagic
Currently it's available for *nix only, although a pull request for
proper (read: builds with msvc) Windows support would be considered.
The only other requirement is zlib.