Closed HendPro12 closed 10 months ago
@HendPro12 That's a good question, thanks for bringing it up. There is something to say for both, so it depends a bit on your situation and plans:
So when running a Java application on GKE, I would lean slightly towards using a side-car pattern, unless you know that all your services will always be in Java, and/or if you are on a very tight budget for resources.
I hope this answers your question. If not, then please feel free to reopen.
https://cloud.google.com/spanner/docs/pgadapter-start#java-in-process states that the in-process method is the recommended setup for Java applications. Does this remain true when the Java application is deployed to GKE? Or in that case is "side-car" the optimal approach?