srcache-nginx-module icon indicating copy to clipboard operation
srcache-nginx-module copied to clipboard

[help]About whether a subrequest can be nonblocked

Open ShenAoScript opened this issue 4 years ago • 0 comments

Ask the group boss a question about the Nginx subrequest

I learned that a subrequest can be called back to the parent request after successful execution

If One of my primary requests is doing asynchronous calculations, the two compute request tasks are independent of each other, but task 2 depends on the result of task 1.

Can subRequest solve the problem of blocking wait? It's like Java's CompletableFuture.

Since I saw that subRequest seemed to have a callback function, I thought it would work, but just getting started with module development,

thank you

ShenAoScript avatar Dec 18 '20 07:12 ShenAoScript