srcache-nginx-module
srcache-nginx-module copied to clipboard
[help]About whether a subrequest can be nonblocked
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