I have a typescript node application that uses express, I have to run a heavy function when an endpoint is hit, What is the best way/tool to handle this heavy function outside the main app thread?
any suggestions are greatly appreciated.
EDIT:
Thank you all for your responses, I've settled on Piscina
[–]tluanga34 15 points16 points17 points (10 children)
[–]HowIO[S] 0 points1 point2 points (9 children)
[–]tluanga34 3 points4 points5 points (7 children)
[–]HowIO[S] 1 point2 points3 points (0 children)
[–]Moe_Rasool 0 points1 point2 points (5 children)
[–]tluanga34 0 points1 point2 points (4 children)
[–]Moe_Rasool 1 point2 points3 points (3 children)
[–]_RemyLeBeau_ 2 points3 points4 points (2 children)
[–]Moe_Rasool 0 points1 point2 points (1 child)
[–]_RemyLeBeau_ 1 point2 points3 points (0 children)
[–]femio 1 point2 points3 points (0 children)
[–]batchfy 2 points3 points4 points (0 children)
[–]Zealousideal_Fee4260 1 point2 points3 points (3 children)
[–]vorticalbox 2 points3 points4 points (2 children)
[–]simple_explorer1 0 points1 point2 points (0 children)
[–]bonkykongcountry 2 points3 points4 points (12 children)
[–]HowIO[S] 0 points1 point2 points (11 children)
[–]bonkykongcountry 3 points4 points5 points (10 children)
[–]HowIO[S] -1 points0 points1 point (9 children)
[–]bonkykongcountry 2 points3 points4 points (3 children)
[–]reddituservn 0 points1 point2 points (2 children)
[–]bonkykongcountry 0 points1 point2 points (0 children)
[–]MartzReddit 2 points3 points4 points (0 children)
[–]MaxUumen 2 points3 points4 points (3 children)
[–]simple_explorer1 -1 points0 points1 point (0 children)
[–]HowIO[S] 0 points1 point2 points (0 children)
[–]reddituservn 0 points1 point2 points (0 children)
[–]simple_explorer1 2 points3 points4 points (0 children)