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 Aug 31, 2021. It is now read-only.
If it were to be added, the result would never be cached, as that's not a good idea within RabbitMQ. We could still make use of the distributed promises though.
So how might it work? I see two possibilities right now - either a new API or add it to request's functionality.
// service AconstgetUser=remit.request('user.get')constuser=awaitgetUser()// ...
// service BconstgetUser=remit.request('user.get')constuser=awaitgetUser()// finds call by service A with same args currently in-flight,// so doesn't send another request, but waits for that response.
Ignoring implementation details, would we have to ensure that all arguments are the same here? As in, not just the input going to the endpoint, but also things like the local request's timeout? It might also be pertinent to either have to opt in or out of the functionality via RequestOptions.
Really interesting little idea.
The text was updated successfully, but these errors were encountered:
It's occured to me that the technique used at @jpwilliams/distributed-promise might also be a very relevant feature here.
If it were to be added, the result would never be cached, as that's not a good idea within RabbitMQ. We could still make use of the distributed promises though.
So how might it work? I see two possibilities right now - either a new API or add it to
request
's functionality.Ignoring implementation details, would we have to ensure that all arguments are the same here? As in, not just the input going to the endpoint, but also things like the local request's
timeout
? It might also be pertinent to either have to opt in or out of the functionality viaRequestOptions
.Really interesting little idea.
The text was updated successfully, but these errors were encountered: