uNetworking / uWebSockets.js

μWebSockets for Node.js back-ends :metal:
Apache License 2.0
7.97k stars 570 forks source link

LocalCluster from uWS #1098

Closed uNetworkingAB closed 1 month ago

uNetworkingAB commented 1 month ago

Need to add macOS clustering like in uWS via LocalCluster

uasan commented 1 month ago

About memory usage for cache, will each worker have its own cache instance or will the cache be only in the main process, will requests processed by workers use a common cache?

uNetworkingAB commented 1 month ago

It is duplicated

uNetworkingAB commented 1 month ago

Big responses could possibly be shared. But not right now

uasan commented 1 month ago

Maybe it makes sense to store large responses in files, send the file to the socket using the sendfile system calls, the OS will be able to send this file from different processes and RAM will be saved. Of course, status 304 is also very useful in this case)

uNetworkingAB commented 1 month ago

Yes but you're thinking 10 steps ahead.