Multitenant support #29806
Replies: 3 comments 22 replies
-
@TomasHofman - can you please provide inputs |
Beta Was this translation helpful? Give feedback.
-
Hi @TomasHofman, Below scenario demonstrates the meaning of tenant :- Organization A - This org has a microservice(let's call it aggregator microservice) which fetches data from different clients/organization. The format of data,request, reponse etc is same. What differs is the base url on which these different clients exposes the api for retrieving the data. Tenat 1 - Organization 1 - url - http://abc.com/data/ Now the aggregator microservice uses the @RegisterRestClient to make call to Organization 1 and Organization 2 api. Presently, there is no way to specify different url for same @RegisterRestClient interface. I would like to add the capability to RestClient to have different url configured in yml/properties for different tenant |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add support of multitenant in different modules. I would like to start with Rest Clients (@RegisterRestClient).
The config would be in below structure where a single client can have different configurations for different tenants.
quarkus.rest-client.firstRestClient.tenant1.url=https://quarkus-tenant1-firstrestclient.free.beeceptor.com
quarkus.rest-client.firstRestClient.tenant2.url=https://quarkus-tenant2-firstrestclient.free.beeceptor.com
Code approach -
resteasy-classic contains rest-client and rest-client-config.
Introduce new module rest-client-multiteant-config which contains the config class to read the properties/yaml as shown above.
However, presently rest-client and rest-client-config are tightly coupled as rest-client directly uses RestClientsConfig class from rest-client-config.
I propose to have a module containing only the abstraction and adding it as a dependency to rest-client-internal.
Then we can have separate modules :-
Beta Was this translation helpful? Give feedback.
All reactions