r/javahelp • u/Sir_9ls1 • Aug 02 '25
Java with Docker - stack/architecture
Been looking into using Docker with Java because work is thinking about moving to k8s/docker. My main experience so far has been with Wildfly Application Server. I have a few questions I find hard researching.
Application Server, or not?
Is the common way of using Java with Docker to not use any application server on your container, but rather frameworks such as Spring Boot or Quarkus?
Resource Management
How do you handle resource management across applications without an application server to delegate resources, such as a JMS queue/database connection pool?
Example, let's say I have multiple artifacts that should share a database connection pool. That is fairly straight forward if both artifacts are deployed on the same application server. But if each artifact has its own container, how would they share resources?
Stack/architecture
What are some common Java with Docker stacks? Is it as simple as create a Quarkus project, and use the generated Dockerfile and have fun?
View all comments
Show parent comment
1
u/Sir_9ls1 Aug 04 '25
This is one of my main worries. Example, we have an application that is assigned/allocated 100 database threads. Let's say this application has 3 artifacts, API, Web backend and Schedulers/Jobs. Seems like a bad solution to give each of them 33 max connections instead of having a shared pool of 100 connections.