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.
Comments
Similar requests
IAM authentication to access the Database
13 votes · 0 comments
http2 h2/c Support
24 votes · 0 comments
Error declaring STORAGE_<LOCATION>_ROOT when using cloudinary.
1 vote · 0 comments
How to use Google Cloud Spanner Sql with Directus?
1 vote · 0 comments
Reset password form asks users to sign in even for roles without app access
1 vote · 0 comments
No comments yet.