dynn / scp-async

scp cmd wrapped in a Async Monad
0 stars 0 forks source link

Isn't scp sync???? #1

Open AkshayIyer12 opened 5 years ago

AkshayIyer12 commented 5 years ago

Hey,

Great work you tried out the holy M word but isn't scp synchronous in nature. Say you get 10 request for transferring a 1gb file. Libuv by default only allows upto 4 threads to spawn. Event loop will be blocked isn't it?

ghost commented 5 years ago

The JavaScript event loop will not be blocked, but using my lib to start a lot of request at the same time is less than ideal. I have not tested what would happen in a setting like you described.

Please don't use this lib in production, I had a very specific use case in mind when I wrote this stuff.

BTW, thanks for opening this issue. I might update the README with the limitations you have pointed out.