Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andygrunwald/your-connection-deserves-a-name
Examples and code to assign a name to your MongoDB, MySQL, NATS, Oracle, PostgreSQL, RabbitMQ, and redis connection.
https://github.com/andygrunwald/your-connection-deserves-a-name
best-practice connection go hacktoberfest http mongodb mysql nats oracle postgresql python rabbitmq redis
Last synced: 3 months ago
JSON representation
Examples and code to assign a name to your MongoDB, MySQL, NATS, Oracle, PostgreSQL, RabbitMQ, and redis connection.
- Host: GitHub
- URL: https://github.com/andygrunwald/your-connection-deserves-a-name
- Owner: andygrunwald
- License: mit
- Created: 2021-07-22T12:54:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T06:48:04.000Z (4 months ago)
- Last Synced: 2024-10-12T21:15:36.031Z (4 months ago)
- Topics: best-practice, connection, go, hacktoberfest, http, mongodb, mysql, nats, oracle, postgresql, python, rabbitmq, redis
- Language: Go
- Homepage: https://andygrunwald.com/blog/your-database-connection-deserves-a-name/
- Size: 6.36 MB
- Stars: 28
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![Logo](images/assign-a-name-to-your-connection.png)
# 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_](https://andygrunwald.com/blog/your-database-connection-deserves-a-name/ "Article your database connection deserves a name at Andy Grunwalds blog").
## How to do it (with examples)
This repository provides you example code for various systems in different programming languages:
- [MongoDB](./mongodb/)
- [MSSQL / SQL-Server](./mssql/)
- [MySQL](./mysql/)
- [NATS](./nats/)
- [Oracle DB](./oracle/)
- [PostgreSQL](./postgresql/)
- [RabbitMQ](./rabbitmq/)
- [redis](./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 languagelet us know in either of two ways:
1. [Create an Issue](https://github.com/andygrunwald/your-connection-deserves-a-name/issues/new) with all the details you have in mind
2. or [create a Pull Request](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/creating-an-issue-or-pull-request#creating-a-pull-request) with the implementation.We are happy to extend this project.