camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.09k stars 1.54k forks source link

Spring Boot Starter Auto config supports Multi tenancy #2286

Open ThorbenLindhauer opened 5 years ago

ThorbenLindhauer commented 5 years ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-10334
Reporter j5qWvn5
What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.
Has restricted visibility comments false

Currently the core of Camunda supports multi tenancy (MT) with multiple engines. However, the spring boot part doesn't support this.

Links:

ThorbenLindhauer commented 5 years ago

This comment was imported from JIRA and written by user @koevskinikola


Hi j5qWvn5,

The Spring Boot Starter wasn't intended to be used with a multi-tenant setup. However, this can still be done through the Process Application processes.xml configuration file: https://docs.camunda.org/manual/7.10/reference/deployment-descriptors/descriptors/processes-xml/

You can also check out this topic in the forum: https://forum.camunda.org/t/dynamic-manage-multi-tenant-process-engine-in-combination-with-spring-boot/12921

I will also forward this ticket for consideration.

Best, Nikola

ThorbenLindhauer commented 5 years ago

This comment was imported from JIRA and written by user @ThorbenLindhauer


Hi Ed,

Thanks for your feature request. Similar to what Nikola said, the Spring Boot Starter is tailored towards a single-engine setup. Your feature request is valid, but we will currently not prioritize it for implementation.

Best regards, Thorben

ThorbenLindhauer commented 5 years ago

This comment was imported from JIRA and written by user WY6w3Wy

What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.


A linked the CAM-9422 to this issue. I think it's related (or even a duplicate)

ThorbenLindhauer commented 5 years ago

This comment was imported from JIRA and written by user j5qWvn5

What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.


I do not think CAM-92422 is very much related. A multi tenant datasource can easily be realised by a extending from Spring "AbstractRoutingDataSource" (that is how we realised it).

ThorbenLindhauer commented 5 years ago

This comment was imported from JIRA and written by user WY6w3Wy

What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.


Ok, then it only has a "Multitenant" relation.

ThorbenLindhauer commented 4 years ago

This comment was imported from JIRA and written by user 0dOrv0L

What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.


Hello, is there any plan to support multi tenancy with spring boot in any future camunda releases? 

ThorbenLindhauer commented 4 years ago

This comment was imported from JIRA and written by user @ThorbenLindhauer


Hi Harish,

Currently we have no such plans. It is also debatable whether the Camunda starter should provide such features (considering that it could make configuration more complex) or if that would rather be something that advanced users should implement themselves.

Cheers, Thorben