How to create connection pool for Cassandra?

Author: Poho Lo

I'm new to Cassandra and trying to create a connection pool. As readying through the documentation, I see that in previous version, PoolingOptions was how it was done. But the new documentation, version 4.1 has nothing about pooling options on the connection pool section. So is there a new way to do the connection pool without using PoolingOptions?

Originally Sourced from: