You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Hi!
Spring MVC supports returning CompletableFuture from controllers. Behind the scenes, it will wait for those futures to complete and return the response. However, the only thing that we can annotate are methods in the controller that return those futures, ending almost immediately, while the actual execution could take a significantly longer time.
What would be a good way to time the actual execution time of those CompletableFutures? Could the project somehow be changed to differentiate returning of regular objects and completable futures and optionally measure total execution time for futures?
Br,
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
Spring MVC supports returning CompletableFuture from controllers. Behind the scenes, it will wait for those futures to complete and return the response. However, the only thing that we can annotate are methods in the controller that return those futures, ending almost immediately, while the actual execution could take a significantly longer time.
What would be a good way to time the actual execution time of those CompletableFutures? Could the project somehow be changed to differentiate returning of regular objects and completable futures and optionally measure total execution time for futures?
Br,
The text was updated successfully, but these errors were encountered: