FeatureFuel
27

Add job queue to reduce cloud costs

Source: directus/directus#19537 · opened by @u12206050
Summary Due to the fantastic event and hook system in Directus it is unfortunately not entirely possible to only allocate cloud cpu during requests, which is often a setting that can be set between always being allocated vs only during requests. Suggest an inbuilt solution to offload async tasks to the database or redis (very risky) and have them either be executed by a cron job every minute, or on trigger by PubSub. Basic Example _No response_ Motivation The reason being that any hooks triggered asynchronously need the cpu in order to compute, and if there doesn't happen to be another request executing on the same container then those hooks never execute, or worse, they start but never get to finish. This leaves us with the only option of always having the cpu allocated, which increases cloud costs by a factor of 30x since it is allocated the entire time the container instance is online. Detailed Design Currently when an async event is triggered it could be said tha…

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