本页还没有译文
本页 11 段还没译成Español,下面显示的是英文原文。3rd Party Integrations
还没翻译译自英文(developers.cloudflare.com)本页 11 段都还没译
Background
Connect to databases by configuring connection strings and credentials as secrets in your Worker.
Connecting to a regional database from a Worker?
If your Worker is connecting to a regional database, you can reduce your query latency by using Hyperdrive and Smart Placement which are both included in any Workers plan. Hyperdrive will pool your databases connections globally across Cloudflare's network. Smart Placement will monitor your application to run your Workers closest to your backend infrastructure when this reduces the latency of your Worker invocations. Learn more about how Smart Placement works.
Database credentials
When you rotate or update database credentials, you must update the corresponding secrets in your Worker. Use the wrangler secret put command to update secrets securely or update the secret directly in the Cloudflare dashboard.
Database limits
You can connect to multiple databases by configuring separate sets of secrets for each database connection. Use descriptive secret names to distinguish between different database connections (for example, DATABASE_URL_PROD and DATABASE_URL_STAGING).