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
Current approach:
The result backend waits for the result to appear in the result store for the task id. This wastes additional resources (time, network) polling storage.
Suggested approach:
Based on the broker, create a queue with a unique name for obtaining results according to the principle 1 broker instance - 1 queue. The name of the queue for the result is passed to the worker along with the message. On the client side, the broker has a consumer that processes a queue of results. It then finds the task instance and sets the result for it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Current approach:
The result backend waits for the result to appear in the result store for the task id. This wastes additional resources (time, network) polling storage.
Suggested approach:
Based on the broker, create a queue with a unique name for obtaining results according to the principle 1 broker instance - 1 queue. The name of the queue for the result is passed to the worker along with the message. On the client side, the broker has a consumer that processes a queue of results. It then finds the task instance and sets the result for it.
Example:
Advantages:
Flaws:
Beta Was this translation helpful? Give feedback.
All reactions