0

I'd like for my endpoint to respond to a request within certain timeframe/timeperiod. For instance, the endpoint should respond to the request within 3 seconds, otherwise return an empty message or throw an exception.

Therefore I'm trying to find the right bells and whistles to use. I assume this can be done with the use of executors (ScheduledExecutor or similar), but I'm not sure if this is the right or preferred approach to go with. If one were to use this, would there be any consequences that I should be aware of? Or is there a way to do this using some sort of 'Spring' way?

Thanks for your time!

David
  • 1
  • 1

0 Answers0