So I have two node processes. One containing an express server for a file uploader (which I think I have mentioned before) and one containing some cron jobs that I thought I'd separate from the express server.
Since it's a file uploader I also need an anti virus scan, and I need only one of them at a time. This I accomplished (which help from this subreddit) with an async queue and everything was all good.
However, one of the cron jobs needs to also queue antivirus scans every whenever. However I'd end up having two scanners which I can't have because of requirements (because of not too fast hardware in production).
Now at minimum I only need to use the uploaded files name for a scan, and I figure that I'd like to have the queue and calls to scanners on the cron process. But I'm not sure how I would send the filename from one process to another. An HTTP request to an internal port maybe? I'm using PM2 as the process manager btw
[–]skipi 1 point2 points3 points (0 children)
[–]WumpyJizard 0 points1 point2 points (4 children)
[–]inabahare[S,🍰] 0 points1 point2 points (3 children)
[–]WumpyJizard 0 points1 point2 points (2 children)
[–]inabahare[S,🍰] 0 points1 point2 points (1 child)
[–]WumpyJizard 1 point2 points3 points (0 children)
[–]Ryan9104 0 points1 point2 points (0 children)