3 ms·
Can you realistically open thousands of fibers though ? You will hit the db connection limitation pretty soon no? I'm just wondering what was the end goal - do
by weatherlite 5y ago
Can you realistically open thousands of fibers though ? You will hit the db connection limitation pretty soon no? I'm just wondering what was the end goal - do people hit maximum threads limitation and need fibers?
EDIT: I might be wrong here it could be that each Fiber released the connection when it's de-scheduled. I'd still like to get a grasp on how this improves performance ...
- ehnto 5y agoDo you mean DB connections for the DB server or some db connection limit in rails? For the DB server, you can scale that out horizontally so it doesn't have to be a hard limit if you need more connections.
- mperham 5y agoThe fiber can't release the connection when yielding if there's an open transaction.
- weatherlite 5y agoHey! So what's your take on this, is this something Sidekiq can benefit from or not so much?
- mperham 5y agoRealistically I don't see any benefit at all. That's not to say it's a bad change, just not one that provides much of any real world benefit to a thread-based system like Sidekiq. I would love to be proven wrong though!