I'm using JSForce on my server that is accepting requests. As of now, a new connection is created on each JSForce request and then logged out once everything's all done. Am I going to encounter an issue with this methodology? Instead, does it make more sense to make a Singleton or a connection pool?
Asked
Active
Viewed 87 times
2
-
Good question! We are having the same doubt. – Eduardo Montoya Aug 04 '21 at 14:33
-
1@EduardoMontoya Appreciate it! For now, I've just been initializing and tearing down connections whenever needed but will update the question if I discover anything on my end – Jack Aug 04 '21 at 19:17