Dedicated Servers need a proper database API with persistent database connections instead of requiring a new network request for every database operation.
Currently, developers can use @minecraft/server-net to communicate with external databases, but this often requires an HTTP API between the server and database. This adds latency, overhead, and network limitations for servers performing frequent database operations.
A database API should allow a server to establish a connection once and reuse it for multiple queries, inserts, updates, and transactions. Connection pooling could also be supported for larger servers.
The API could support MySQL, MariaDB, PostgreSQL, SQLite, and other database backends.
Dynamic Properties are useful for simple key/value data, but they are not ideal for large or complex datasets that require querying, indexing, relationships, and transactions.
A first-class database API would let developers build economies, auction houses, statistics, permissions, marketplaces, player histories, and progression systems without maintaining a separate HTTP backend just to communicate with a database.
@minecraft/server-net is useful for general networking, but database access is a different use case and should have an API designed for persistent connections and efficient database operations.
Please consider adding first-class database connectivity with persistent connections to the Bedrock Script API for Dedicated Servers.
0 Comments
Please sign in to leave a comment.
Post a new comment: