#What are best practices for communicating with database for Discord bot?

1 messages · Page 1 of 1 (latest)

toxic bridge
#

I have an app spread across multiple social media platforms, with some shared userdata across these platforms

Q. What is a good approach for handling data across such apps ?

  1. Communicate via APIs ? I do have a GraphQL API
  2. Directly use database calls inside djs client ?
  3. Combine Discord bot with API server ?

My API is a NodeJS server serving multiple endpoints for auth, dashboards etc

I can host them both on a single machine

lunar hound
#

I personally use GraphQL, i think is the best way.