Ruby on Rails Multiple HTTP request at the same time?

后端 未结 2 562
时光说笑
时光说笑 2020-12-16 20:36

I\'m pulling multiple requests (its pulling one at a time), I was wondering if there\'s a way pull requests all at the same time if I have something like this:



        
2条回答
  •  暖寄归人
    2020-12-16 20:47

    There are gems like spawn that do this in a forked process or as a new thread in your process.. Here is a link to another SO post that discusses it

    What is the difference between forking and threading in a background process?

    Here is the gem in question: https://github.com/tra/spawnling

提交回复
热议问题