How does worker max time work precisely?

What (I think) I understand:

  • When using paid plan, you can make use of either Bundled or Unbound worker runtime.
  • In case of Unbound, the worker can last for a maximum of 30 seconds.
  • It can serve 6 multiple connections as the same time
What I'm trying to figure out:

  • If my request takes 25 seconds to process, should I return a response immediately or after those 25 seconds?
  • How do I prevent a second reqeust from coming in after 5 seconds (at which point there isn't enough time to process the request during max runtime of the worker)?
Most likely my mental model is somehow wrong, would love to learn!
Was this page helpful?