Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Timing futures #209

Open
tstavinoha opened this issue Sep 29, 2017 · 0 comments
Open

Timing futures #209

tstavinoha opened this issue Sep 29, 2017 · 0 comments

Comments

@tstavinoha
Copy link

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,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant