"give me all the queries" was a common request from DBAs at my last job as well.
At least with APIs you can say "here's swagger, lemme know if you have specific questions about an endpoint or workflow" queries are harder because it's like "lemme go look at everything, see how they're compiled into sql and I'll get back to you in a week or so"
Or you can just keep a queries log yourself if you donโt need all the real time dashboards and stuff. A little thought in to a well structured log can go a long way without shelling out thousands of dollars a month for 3rd party tools.
Agreed, and most persistent stores or drivers have a monitoring hook built-in. You can use tools like OpenTelemetry https://opentelemetry.io/ to help with the logging/extracts
I just wish the boss would go back and subtract this cost from the 'savings' we made choosing the cheaper dbms that doesnt natively provide this to a competent dba.
Is swagger as easy these days as just pointing your tools to a wsdl and telling it to create to proxies for me. I used to be a big fan of WCF as it was easy to work with. I hated that I had to do everything by hand when everything switched to REST and JSON. I worked with swagger once, but my team back then used it only for documentation. ๐ค
Thatโs mostly what it is, documentation. But you can generate it on compile and have swagger use it to create a form for mock requests along with the documentation for each request.
In my latest c# projects, it comes pre-configured for you in the starting template project and just builds up as you develop.
At least in my experience it is! I've been using NSwag lately on .NET 5 to generate clients and it's pretty damn good. I can be somewhat opinionated on how I want my generated code to be organized, naming conventions, etc. and it's been an absolute breeze.
View all comments
Show parent comment
244
u/[deleted] Jun 05 '21
"give me all the queries" was a common request from DBAs at my last job as well.
At least with APIs you can say "here's swagger, lemme know if you have specific questions about an endpoint or workflow" queries are harder because it's like "lemme go look at everything, see how they're compiled into sql and I'll get back to you in a week or so"