N
Novu8mo ago
kittenkill

Tentans or Topics

Hi all! I've got multiple organization in my app. Wondering is I should use tenants or topics. What im thinking is to notify thing to all users belonging to the same organization only. All organization and its users, should behave equally, that means, the workflows should be the same. Is this better modelled with topic? What do you think?
7 Replies
Ask Inkeep
Ask Inkeep8mo ago
Hi @kittenkill, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. Hi @kittenkill, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Tenants * Java * Node.js * Security and Compliance -----------------------------
Ask Inkeep
Ask Inkeep8mo ago
Answer For your scenario, using tenants would be the more appropriate approach. Tenants in Novu are designed to represent groups of users, like organizations in your app, allowing you to tailor specific notification experiences to users of different groups or organizations. Each tenant can have its own workflow customizations, integration customizations, and tenant-specific notification content, ensuring that all users belonging to the same organization receive notifications that behave equally and follow the same workflows (1) (2) . Topics, on the other hand, are used for managing bulk notifications to multiple subscribers at once, identified by a custom key. While topics allow for easy interface for triggering notifications to multiple subscribers, tenants offer a more structured approach for organizational segregation and customizing notification behavior and content per organization (3) . Therefore, for your need to notify all users belonging to the same organization with the same workflows, tenants are better modeled to handle this use case.
Ask Inkeep
Ask Inkeep8mo ago
Got it. Tagging @Support for additional help.
Pawan Jain
Pawan Jain8mo ago
@kittenkill Tenants and topics both have different usecase. Tenants can be used to store data for some specific group of people and it can be used later in workflow step content. Topics on the other hand is group of subscribers to which workflow can be triggered. Here do you want to send same notifications to those users?
kittenkill
kittenkillOP8mo ago
Hi @Pawan Jain , yes, users will receive the exact same notifications. Workflow will be exactly the same. the only thing i need, is to send to different group of people the same message. But group A, and group B will receive the same message type, depending if the message should be sent to group A or B. The most obvious thing, is to use topic, right?
Pawan Jain
Pawan Jain8mo ago
Yes, as per your usecase topic is best option. For each group, create one topic and add all subscribers into that topic
kittenkill
kittenkillOP8mo ago
Great, thank for confirming!
Want results from more Discord servers?
Add your server