cloudflare / cloudflare-docs

Cloudflare’s documentation
https://developers.cloudflare.com
Creative Commons Attribution 4.0 International
3.08k stars 4.77k forks source link

Clarify smart placement and D1 bindings #14883

Closed brettwillis closed 1 month ago

brettwillis commented 5 months ago

Existing documentation URL(s)

https://developers.cloudflare.com/workers/configuration/smart-placement/#d1

What changes are you suggesting?

The docs state:

Workers with a D1 binding will always be placed in a data center near the location of the D1 database they are bound to. Subrequests to other back-end services are ignored by Smart Placement in this case.

It is unclear if "always" in this case means always when Smart Placement is on or just plain always (with or without smart placement). Can you clarify if the worker is always colocated with the D1 binding regardless if smart placement is configured? Or is it only colocated with the D1 binding when smart placement is on?

Furthermore, does the "one percent (1%) of requests are not routed with Smart Placement" still apply when a D1 binding is forcing the placement?

Additional information

No response

gshirescf commented 1 month ago

cc: @harshil1712

Oxyjun commented 1 month ago

The whole chapter is going through edits, this is now being tracked here: https://github.com/cloudflare/cloudflare-docs/pull/16697

Oxyjun commented 1 month ago

Relevant PR has been merged, closing this issue.