open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

Feature: Proposal to Support "Multitenancy" in OpenIM

Open zmhbh opened this issue 1 year ago • 10 comments

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

zmhbh avatar Dec 22 '23 07:12 zmhbh

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.

kubbot avatar Dec 22 '23 07:12 kubbot

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.

cubxxw avatar Dec 25 '23 08:12 cubxxw

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.

zmhbh avatar Dec 26 '23 01:12 zmhbh

@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!

cubxxw avatar Dec 26 '23 01:12 cubxxw

Transferring the code to openim for repurchase is a great way to avoid conflicts caused by version upgrades. Thank you for your support.

cubxxw avatar Dec 26 '23 01:12 cubxxw

@cubxxw Any update on this one?

zmhbh avatar Dec 28 '23 02:12 zmhbh

Hi @FGadvancer , gentle ping😁, get a chance to take a look at this design? Then we can move to the next step. Thanks!

zmhbh avatar Dec 29 '23 02:12 zmhbh

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.

skiffer-git avatar Jan 03 '24 06:01 skiffer-git

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 avatar Jan 05 '24 02:01 zmhbh

@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!

cubxxw avatar Jan 05 '24 03:01 cubxxw

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.

kubbot avatar Mar 05 '24 08:03 kubbot

This issue was closed because it has been stalled for 7 days with no activity.

kubbot avatar Mar 14 '24 08:03 kubbot