quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.63k stars 2.64k forks source link

Allow dev services databases to be shared #40376

Open nscuro opened 5 months ago

nscuro commented 5 months ago

Description

Quarkus supports sharing of certain Dev Services containers (AMQP, Kafka) across multiple applications or instances of an application. This is super useful for systems with shared infra.

However, it seems what can not be shared are database containers, which complicates the otherwise so straightforward dev experience.

Currently, each application instance will launch its own database. Testing systems where multiple services access the same database requires solutions such as Docker Compose.

Quarkus should adopt the same behavior that is already available for AMQP and Kafka dev services. It should be possible to opt-in to database containers being shared.

Implementation ideas

No response

quarkus-bot[bot] commented 5 months ago

/cc @geoand (devservices), @stuartwdouglas (devservices)

nscuro commented 5 months ago

As per https://github.com/quarkusio/quarkus/discussions/40351#discussioncomment-9275079