open-im-server
open-im-server copied to clipboard
Feature: Proposal to Support "Multitenancy" in OpenIM
Checklist
- [X] I've searched for similar issues and couldn't find anything matching
- [X] I've discussed this feature request in the OpenIMSDK Slack and got positive feedback
Is this feature request related to a problem?
❎ No
Problem Description
Solution Description
Recently, we get started with openim deployment in our organization. We have multiple Apps, so we plan to fork the repo and develop the multi-tenant feature by ourselves there. But I realized maybe we can contribute back into openim official repo and benefit other people.
Benefits
Other people with 2+ apps will also benefit from this change.
Potential Drawbacks
No response
Additional Information
No response
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
Join slack 🤖 to connect and communicate with our developers.
Thank you for bringing up this issue in Slack. I would greatly appreciate it if you could provide more details about your design. I believe that reaching a consensus is important, and I am eager to understand your perspective.
Just like the normal ToB system we see, we can introduce a "tenant_id" field into db model layer to achieve some isolation logically. Then, the rest of things should be very straightforward. It's worth pointing out that we need to support callback per tenantId and push per tenantId as well. That's it. Feel free to add if I miss something.
@FGadvancer Would you mind taking a look at this design when you have a moment? I would really appreciate your feedback on whether any additional adjustments are needed. Thank you!
Transferring the code to openim for repurchase is a great way to avoid conflicts caused by version upgrades. Thank you for your support.
@cubxxw Any update on this one?
Hi @FGadvancer , gentle ping😁, get a chance to take a look at this design? Then we can move to the next step. Thanks!
Currently, we have not yet implemented a plan for multi-tenancy, and it's not a top priority. We suggest that this plan can be deferred for the time being.
Currently, we have not yet implemented a plan for multi-tenancy, and it's not a top priority. We suggest that this plan can be deferred for the time being.
Hi @skiffer-git, thanks for your reply. If possible, maybe we can help create the MR? What I'm thinking is: it won't affect the existing system or the existing roadmap of your product, on the other hand, it's a nice-to-have thing.
@zmhbh
Welcome to openim! You can join us on our web platform at https://web-enterprise.rentsoft.cn/#/chat/si_3418577436_5668985363 or engage in discussions with us on Slack at https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9P. We look forward to connecting with you!
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.