Revolutionary simple Multi-Tenancy Approach for OPAL #796
plduser
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Nice approach! You're more than invited to open a PR and contribute it to the OPAL docker files folder |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This repository https://github.com/plduser/opa-zero-poll-single-topic-multi-tenant contains a breakthrough solution for multi-tenancy in OPAL designed for high-scale SaaS applications that eliminates both the need for system restarts and the complexity of incremental updates (PATCH operations) when adding new tenants.
Traditional (restart required):
⚠️ New topic = RESTART
┌─────────────────┐ topics: tenant_1_data ┌─────────────────┐
│ OPAL Server │◄─────────────────────────────│ OPAL Client │
│ │ topics: tenant_2_data │ │
│ Multi Topics │◄─────────────────────────────│ Multi Subscribe │
└─────────────────┘ topics: tenant_3_data └─────────────────┘
The solution (no restart):
┌─────────────────┐ topic: tenant_data ┌─────────────────┐
│ OPAL Server │◄─────────────────────────────│ OPAL Client │
│ │ (for all tenants) │ │
│ Single Topic │ │ Single Subscribe │
│ Multi Sources: │ │ Multi Data Fetch │
│ - /acl/tenant1 │ │ - URL1→/acl/ten1 │
│ - /acl/tenant2 │ │ - URL2→/acl/ten2 │
│ - /acl/tenant3 │ │ - URL3→/acl/ten3 │
└─────────────────┘ └─────────────────┘
✅ One topic, multiple sources, different paths
The idea and the proof of concept is described in the documentation. Repo is working docker-compose file, ready to test.
Would be great to discuss it!
Beta Was this translation helpful? Give feedback.
All reactions