Hello I have big app in Laravel, i have to incorporate in it file upload/download system that will be public.
Since PHP and laravel are waiting for process to be finished I think that it is not a best way to use php and laravel for this task. Imagine i have user uploading 200MB file, other users will not be able to upload their files if this 200MB file is not finished uploading... I think I could solve this problem using nodeJs , could someone provide me some more info about this ? I would like to use it on my existing domain/hosting ( inside laravel app ). Thank you.
Node JS - which runs asynchronous JavaScript in its own server - is a completely different technology to Laravel - which runs PHP. You could run a node js uploader as a separate service but it adds a huge amount of complication to your app that I doubt you need.
One person uploading a large file shouldn’t affect others using the app. Multiple instances of PHP can run. So other users can access the site while the file uploads.
I would be concerned if someone was able to upload such a large file though. You need to carefully think through what you allow people to do.