Workers - New Placement Hints for Workers
Workers now support placement hints to run closer to infrastructure in legacy cloud regions and custom endpoints, minimizing latency for services that make multiple round trips to existing backends. Configure via placement.region for AWS/GCP/Azure, placement.host for layer 4 checks, or placement.hostname for layer 7 checks in Wrangler.
You can now configure Workers to run close to infrastructure in legacy cloud regions to minimize latency to existing services and databases. This is most useful when your Worker makes multiple round trips.
To set a placement hint, set the placement.region property in your Wrangler configuration file:
{
"placement": {
"region": "aws:us-east-1",
},
}[placement]
region = "aws:us-east-1"
Placement hints support Amazon Web Services (AWS), Google Cloud Platform (GCP), and Microsoft Azure region identifiers. Workers run in the Cloudflare data center ↗ with the lowest latency to the specified cloud region.
If your existing infrastructure is not in these cloud providers, expose it to placement probes with placement.host for layer 4 checks or placement.hostname for layer 7 checks. These probes are designed to locate single-homed infrastructure and are not suitable for anycasted or multicasted resources.
{
"placement": {
"host": "my_database_host.com:5432",
},
}[placement]
host = "my_database_host.com:5432"{
"placement": {
"hostname": "my_api_server.com",
},
}[placement]
hostname = "my_api_server.com"
This is an extension of Smart Placement, which automatically places your Workers closer to back-end APIs based on measured latency. When you do not know the location of your back-end APIs or have multiple back-end APIs, set mode: "smart":
{
"placement": {
"mode": "smart",
},
}[placement]
mode = "smart"Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.