▲ 23 r/node
Is it common to have any async processes finish in the background while the main function returns a value early or should one avoid it strictly and stick with job queues?
How strictly should I avoid a Node/Express handler returning a value to the client, but have some process continue in the background to finish processing it?
If the background is expected to take another 1~2 seconds is it acceptable?
Or should I avoid them and relegate all background tasks, big or small, to a dedicated job queue at the cost of complexity.
u/kernelangus420 — 5 days ago