It is all about numbers. What latency is acceptable in this hypothetical? How many workers are there? I'm not sure how long x is "time.sleep(x)" but unless very long this will use one connection per worker. That is probably fine in this situation but it isn't fine for all projects.
Comments
It is all about numbers. What latency is acceptable in this hypothetical? How many workers are there? I'm not sure how long x is "time.sleep(x)" but unless very long this will use one connection per worker. That is probably fine in this situation but it isn't fine for all projects.