I had recently a lot of warnings that “connections to your cluster (s) have exceeded”. It is an issue with application’s code :slight_smile: I mean we need to avoid new connection on each call to a db. Take a look how it is done in NextJS example: https://github.com/vercel/next.js/blob/canary/examples/with-mongodb/lib/mongodb.js or how it is explained in the movie: Fullstack SvelteKit ToDo App with TailWind CSS and MongoDB - YouTube

1 Like