In my Rails controller method, which is executed when the user submits a form, there is a Ruby code sleep(60)
, telling it to wait for a minute. One user submits the form, and while the execution is "sleeping", another user submits the form. Will the second user have to wait for the first user to finish, or will the execution of the controller start for the second user?
Both users will wait for 60 seconds only, they will not depend on each other. As request will be processed separately for each other. Hence no dependency
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With