masumsoft / express-cassandra

Cassandra ORM/ODM/OGM for NodeJS with support for Apache Cassandra, ScyllaDB, Datastax Enterprise, Elassandra & JanusGraph.
http://express-cassandra.readthedocs.io
GNU Lesser General Public License v3.0
228 stars 67 forks source link

Slow initial connection to #265

Closed janiskampars closed 1 year ago

janiskampars commented 1 year ago

I am ussing express-cassandra together with express web server and I have several async select/update/inserts tied to various REST apis. I have discovered that the initial connection to Cassandra takes some 20 seconds, after which everything is fast and all operations are executed right away. Is there a way I can check when the actual connection is established and could be the reason for such behaviour. My webserver and Cassandra run inside containers.