FeatureFuel
4

Cluster Hook - Concurrency - Parallel

Source: directus/directus#22619 · opened by @NilsBaumgartner1994
Summary So when dealing with multiple instances we have a concurrency problem. As currently each instance of directus has their own call of action, filter, ... there are sometimes cases where we need to synchronize them. Basic Example _No response_ Motivation Running a directus server with multiple instances bringt a lot of problems as we need to make sure calculations and changes are not made duplicated or overwriting things. Example: We have a hook which as an action checks if for example creates food offers for the current week. So in this example the hook starts and sees it needs to create for all weekdays an offer. While the first instance is working another call for an action in a second instance is started. This second worker again sees, that for all weekdays new offers needs to be made. This brings us to a situation where we will have duplicates as the instances run parallel not knowing each other. Detailed Design having next to action(...) and filter(...) eithe…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests