your-connection-deserves-a-name
your-connection-deserves-a-name copied to clipboard
Examples and code to assign a name to your MongoDB, MySQL, NATS, Oracle, PostgreSQL, RabbitMQ, and redis connection.

your connection deserves a name
👀 When your app interacts with an external system, assign a name to the connection. An external system in this context can be things like a database, a cache, a message queue or an HTTP endpoint.
🎯 The goal should be: the external system can identify their clients.
🔥 During an incident, it will reduce the time to debug by multiple hours and often save other applications from failing.
➡️ Read more about this at your database connection deserves a name @ andygrunwald.com.
How to do it (with examples)
This repository provides you example code for various systems in different programming languages:
- MongoDB
- MSSQL / SQL-Server
- MySQL
- NATS
- Oracle DB
- PostgreSQL
- RabbitMQ
- redis
Missing a system or a programming language?
If you
- know a system that supports connection naming, and it is not listed here
- miss a programing language example in your favorite language
let us know in either of two ways:
- Create an Issue with all the details you have in mind
- or create a Pull Request with the implementation.
We are happy to extend this project.