I am using cassandra as backend in web application(in java), where for each user need to create unique session or use single one as in below url?
I read session information in this link. https://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.html
Its saying Session instances are thread-safe. Means one thread at a time can use this instance.
Also written that each session maintains multiple connections to the cluster nodes.
Question is
- if only one thread can use on session instance then what is use of creating multiple connection per session to the cluster nodes?
- Doesn't it slow downs multithread operations on session?