简体   繁体   English

node.js 中每个用户的多个“独立任务”

[英]Multiple " independent tasks" for each user in node.js

I just got a question for node.js applications.我刚收到关于 node.js 应用程序的问题。 I'm trying to make a webbased bot, where users will be able to enter their data for a site and the bot is doing its thing.我正在尝试制作一个基于网络的机器人,用户可以在其中输入他们的网站数据,并且机器人正在做它的事情。 Just like a sneaker or gpu bot, my question is, how would I achieve that a user can run/stop his tasks independent from other users, is it even possible with a node.js application and would it make sense?就像运动鞋或 gpu 机器人一样,我的问题是,我将如何实现用户可以独立于其他用户运行/停止他的任务,甚至可以使用 node.js 应用程序吗? Since every user has different information, also how would I achieve that I make the bot run for hours concurrently with other peoples tasks/bots?由于每个用户都有不同的信息,我将如何实现让机器人与其他人的任务/机器人同时运行数小时? I've looked into worker threads but I doubt it's the right answer for it..我已经研究过工作线程,但我怀疑这是正确的答案..

Thanks for any answer and tips, I'm just looking for tips to get forward with my question, not any spoonfeed.感谢您提供任何答案和提示,我只是在寻找提出问题的提示,而不是任何勺子。

I suggest Node JS is not the right tech doing this kind of jobs.我建议 Node JS 不是做这类工作的合适技术。 You should go with other technologies like GO or Java who provide better flexibility with concurrency.您应该将 go 与其他技术(如 GO 或 Java)一起提供更好的灵活性和并发性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM