Central Rest API Vs Direct Database Connection For Data Queries

Hey I am working on a public bot with a dashboard for Minecraft servers and I have made a simple diagram for the architecture of the system. I am wondering if allowing all three services connection to the database is a bad idea or should I have a central api that you query data from.
2 Replies
tropic
tropicOP2y ago
I cannot allow access to the database directly for Warden. That would require me either making users in the database for each of these users with specific perms which I really dont wanna do or some other way of connecting to the db directly Which seems like a bad Idea to me when dealing with users that arent me so Guardian could stay connected directly to the DB because it does access the db for configs and stores/updates data while using t3 stack api routes to post data to the db with warden without allowing direct access to the db should also make sure that I generate api keys for this
Want results from more Discord servers?
Add your server