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
We have a situation where we have a wallet containing multiple DIDs that the browser is listening on. However, the browser restricts the number of simultaneous requests that can be made. To address this, we've created a manager to rotate through the DIDs.
Every so often, the "root" DID sends a message to the DID that needs to be closed, asking it to read the message and finish the request (which is stuck in a loop, because MQ is waiting for new messages).
However, this approach isn't scalable because, while the browser limits parallel requests to 6 (as an example), the delay in rotating the DIDs and the unnecessary requests for sending messages to cancellations increases as the number of DIDs to be rotated grows.
There have been some updates to OpenDSU that enable calling methods like "stopWaitingForMessages" However, these checks happen after or before processing, without interrupting or aborting the current request (the DID/MQHandler still keeps the active request even after the "stopWaitingForMessages" method has been called)
The text was updated successfully, but these errors were encountered:
Scenario:
We have a situation where we have a wallet containing multiple DIDs that the browser is listening on. However, the browser restricts the number of simultaneous requests that can be made. To address this, we've created a manager to rotate through the DIDs.
Every so often, the "root" DID sends a message to the DID that needs to be closed, asking it to read the message and finish the request (which is stuck in a loop, because MQ is waiting for new messages).
However, this approach isn't scalable because, while the browser limits parallel requests to 6 (as an example), the delay in rotating the DIDs and the unnecessary requests for sending messages to cancellations increases as the number of DIDs to be rotated grows.
There have been some updates to OpenDSU that enable calling methods like "stopWaitingForMessages" However, these checks happen after or before processing, without interrupting or aborting the current request (the DID/MQHandler still keeps the active request even after the "stopWaitingForMessages" method has been called)
The text was updated successfully, but these errors were encountered: