Open yrodiere opened 1 month ago
/cc @geoand (openshift), @iocanel (openshift)
Solution 1 doesn't work with Panache
See for a possible solution for Panache 1 and repositories https://github.com/quarkusio/quarkus/issues/43341
Panache 2 should have something better, to also make this possible.
Description
Problem statement
Some applications are built once, then published as a single binary (container image) and consumed/deployed by third-parties (users, customers) in various environments.
Such binaries need to work in multiple environments, and that means in particular that datasources and persistence units may need to work with different database kinds (e.g. Oracle and Postgres) depending on the deployment.
Currently, application developers have two solutions to address this:
This has several downsides, however:
Proposal
We could expose more guided, better integrated ways of developing and deploying of such applications.
Related discussion: https://github.com/quarkusio/quarkus/discussions/42391
Implementation ideas
If we prefer solution 1 above (active/inactive)
We could provide a built-in concept of "alternatives" in the configuration of persistence units or datasources:
Main downsides:
If we prefer solution 2 above (re-augmentation)
We could provide a simple process and technical solution that could be enabled simply (e.g. configuration flag) by application developers, and could by deployed simply by users/customers, triggering re-augmentation only once:
Main downsides:
cc @maxandersen @cescoffier @geoand @gsmet and anyone you think would be interested: your ideas could help here...