-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Tenancy Support in Solid Queue #443
Comments
@hubertjakubiak yes! Via shards: #353 |
Hi @rosa, Just to check, should a single worker process handle background jobs from multiple databases? If so, I guess the Solid Queue tables would need to move from |
In my plans, a worker would handle jobs from a single DB (a single shard) so that we can easily join workers with their claimed executions. This would allow deregistering a worker and releasing claimed executions within a transaction (all in the same DB). So you'd have at least as many workers as shards. About the schema, yes, that's exactly right, it'd need to use multiple schema files, all identical, one per shard. Unfortunately, that's how it works. I'd prefer if Rails supported having a single schema file for all shards since they're identical, but it's not a big deal. |
I would expect one worker to handle background jobs for all tenants. Having separate workers for each tenant goes against the idea of multi-tenancy, where resources are shared. Just like I have one web worker for the site, I would expect one worker to handle jobs for all tenants. |
Then, Solid Queue is not going to support multi-tenancy as you expect it. It'll support sharding (with the main goal of horizontal scaling), which you could use for multi-tenancy but with a worker per shard. |
Going to close this one as we already have an issue for sharding, #353. |
@rosa Thank you for clarifying how the feature will work. I appreciate it. |
Are there any plans to add support for multi-tenancy in Solid Queue? Specifically, is there a roadmap or intention to allow each tenant to store background jobs in their dedicated database?
The text was updated successfully, but these errors were encountered: