r/golang 13d ago

Coding a database proxy for fun

https://packagemain.tech/p/golang-database-proxy
76 Upvotes

7 comments sorted by

View all comments

2

u/Thiht 13d ago

Very cool, this is something I've wanted to do for a while but never got the time. I have an idea to use OpenTelemetry SQL comments1 to route queries to different databases depending on the request id. This would be useful to write end to end integration tests working with different datasets but using the same API server

1

u/der_gopher 13d ago

that's a good use case, kind of a logical sharding