andygrunwald / your-connection-deserves-a-name

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

Home Page:https://andygrunwald.com/blog/your-database-connection-deserves-a-name/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

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:

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:

  1. Create an Issue with all the details you have in mind
  2. or create a Pull Request with the implementation.

We are happy to extend this project.

About

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

https://andygrunwald.com/blog/your-database-connection-deserves-a-name/

License:MIT License


Languages

Language:Go 63.6%Language:Python 22.0%Language:PHP 14.4%