Replies: 2 comments 6 replies
-
|
Arconia offers the possibility to share Dev Services across multiple applications, based on Testcontainers's own feature called "reusable containers". In fact, some of the Dev Services like Artemis, RabbitMQ, Kafka, Ollama, and Grafana LGTM are shared by default when running in dev mode. Others are not. But you can control for each Dev Services whether it's shared and when (dev-mode only, or also in test mode). You can read more about it here: https://docs.arconia.io/arconia/latest/dev-services/#_sharing_dev_services Does that feature help with your use case? When Dev Services are not shared, there is no port conflict as Testcontainers will always allocate a port dynamically. For example, if you have two applications running with the PostgreSQL Dev Service, each of them will have its own Dev Service instance on different port numbers. |
Beta Was this translation helpful? Give feedback.
-
|
I have another interesting case (I guess 🤔). Let's imagine you have two services: 1️⃣st caseWe’re running 2️⃣nd case (more interesting)We’re running both WDYT? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe it’s not really a question, but rather a topic for further discussion.
How do you handle situations where you need to run two services locally — for example, a
user-serviceand acustomer-service?Each of them has its own database and uses AMQP. How do they connect to the same database? Or how do you avoid port conflicts?
Any thoughts on how to develop two services manually?
Beta Was this translation helpful? Give feedback.
All reactions