I am doing a cpu intensive task on a dedicated server running on nodejs using the following procedure. Wondering if this is the correct approach (steps and approach as a whole) -
(Note - Time of completion of cpu intensive task is not important as long as it just gets done)
Answer1. If CPS keeps on enqueueing requests, at some point (at a very very large request queue), heap size of application will exceed the OS limit -> CPS will be shut down losing all the enqueued requests. Think of this scenario like a DDOS attack on CPS!
I went with simple HTTP at this point of time as my load is not that huge. I may update this answer later (when my server load increases).
(Some sources come from this question on Stackoverflow)