Let's say I have a cluster of 3 nodes for ScyllaDB in my local network (it can be AWS VPC). I have my Java application running in the same local network.
I am concerned how to properly connect app to DB.
- Do I need to specify all 3 IP addresses of DB nodes for the app?
- What if over time one or several nodes die and get resurrected on other IPs? Do I have to manually reconfigure application?
- How is it done properly in big real production cases with tens of DB servers, possibly in different data centers?
I would be much grateful for a code sample of how to connect Java app to multi-node cluster.