diff --git a/src/content/docs/limitations.mdx b/src/content/docs/limitations.mdx index b54b46e2..a158dbf3 100644 --- a/src/content/docs/limitations.mdx +++ b/src/content/docs/limitations.mdx @@ -9,19 +9,6 @@ import Comments from "/src/components/Comments.astro"; No security product is perfect and Arcjet is no exception. Here are some things to be aware of when building your application with Arcjet. -## Rate limits are scoped per region - -Rate limits are currently enforced per region. The SDK automatically picks the -closest region to where your application is running, but if your code runs in -multiple locations then the rate limits will be enforced separately. - -This is generally not a problem if you are using rate limits based on IP address -because a client will typically always connect to the same region. However, if -you are using rate limits based on a user's account ID or an API key then you -should be aware of this limitation. - -We are working on an option to sync rate limits globally. - ## Your application will receive traffic Network based security products block traffic before it hits your application. diff --git a/src/content/docs/regions.mdx b/src/content/docs/regions.mdx index c46576c2..ada86505 100644 --- a/src/content/docs/regions.mdx +++ b/src/content/docs/regions.mdx @@ -3,93 +3,11 @@ title: "Arcjet Cloud API regions" description: "Which regions the Arcjet Cloud API is deployed to." --- -import { Link } from "@/components/link"; import Comments from "/src/components/Comments.astro"; -Arcjet's Cloud API minimizes latency by running as close as possible to your -application and routing requests based on the lowest latency region. - -## New regions - -We deploy regions based on demand, so if you need a region that isn't listed -below, let us know. We can usually -deploy to a new region within a few days. - -## Current regions - -The API is currently deployed to the following regions: - -### AWS - -| Location | Region Code | -| ------------------------ | -------------- | -| Northern Virginia, USA | us-east-1 | -| Ohio, USA | us-east-2 | -| Northern California, USA | us-west-1 | -| Oregon, USA | us-west-2 | -| Singapore | ap-southeast-1 | -| Sydney, Australia | ap-southeast-2 | -| Canada (Central) | ca-central-1 | -| Dublin, Ireland | eu-west-1 | -| London, UK | eu-west-2 | -| Frankfurt, Germany | eu-central-1 | -| São Paulo, Brazil | sa-east-1 | - -### Fly.io - -| Location | Region Code | -| ---------------------- | ----------- | -| Amsterdam, Netherlands | ams | -| Atlanta, GA, USA | atl | -| Ashburn, VA, USA | iad | -| Boston, MA, USA | bos | -| Bucharest, Romania | otp | -| Denver, CO, USA | den | -| Dallas, TX, USA | dfw | -| Frankfurt, Germany | fra | -| Hong Kong | hkg | -| London, UK | lhr | -| Los Angeles, CA, USA | lax | -| Madrid, Spain | mad | -| Miami, FL, USA | mia | -| Montreal, Canada | yul | -| Mumbai, India | bom | -| Paris, France | cdg | -| Phoenix, AZ, USA | phx | -| Rio de Janeiro, Brazil | gig | -| São Paulo, Brazil | gru | -| Seattle, WA, USA | sea | -| Secaucus, NJ, USA | ewr | -| San Jose, CA, USA | sjc | -| Singapore | sin | -| Stockholm, Sweden | arn | -| Sydney, Australia | syd | -| Toronto, Canada | yyz | -| Wawsaw, Poland | waw | - -### Render - -| Location | -| ------------------ | -| Oregon, USA | -| Ohio, USA | -| Virginia, USA | -| Frankfurt, Germany | -| Singapore | - -### Vercel - -| Location | Region Code | -| --------------------- | ----------- | -| Cleveland, USA | cle1 | -| Dublin, Ireland | dub1 | -| London, UK | lhr1 | -| Frankfurt, Germany | fra1 | -| São Paulo, Brazil | gru1 | -| Washington, D.C., USA | iad1 | -| Portland, USA | pdx1 | -| San Francisco, USA | sfo1 | -| Singapore | sin1 | -| Sydney, Australia | syd1 | +Arcjet's Cloud API minimizes latency by running in over 300 global +locations so requests can be handled as close as possible to your +application. Requests are automatically routed to the closest and +lowest latency region. diff --git a/tests/screenshot.test.ts-snapshots/screenshot-limitations-dark-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-limitations-dark-chromium-linux.png index 6c06395e..8536b740 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-limitations-dark-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-limitations-dark-chromium-linux.png differ diff --git a/tests/screenshot.test.ts-snapshots/screenshot-limitations-light-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-limitations-light-chromium-linux.png index 240f671e..65ef0527 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-limitations-light-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-limitations-light-chromium-linux.png differ diff --git a/tests/screenshot.test.ts-snapshots/screenshot-reference-bun-dark-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-reference-bun-dark-chromium-linux.png index 934ab44e..f8314d9e 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-reference-bun-dark-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-reference-bun-dark-chromium-linux.png differ diff --git a/tests/screenshot.test.ts-snapshots/screenshot-reference-nuxt-dark-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-reference-nuxt-dark-chromium-linux.png index 7e303669..ea9a8939 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-reference-nuxt-dark-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-reference-nuxt-dark-chromium-linux.png differ diff --git a/tests/screenshot.test.ts-snapshots/screenshot-reference-sveltekit-dark-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-reference-sveltekit-dark-chromium-linux.png index f9a5b9a9..9ab76579 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-reference-sveltekit-dark-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-reference-sveltekit-dark-chromium-linux.png differ diff --git a/tests/screenshot.test.ts-snapshots/screenshot-regions-dark-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-regions-dark-chromium-linux.png index 51fa16e5..477daeb0 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-regions-dark-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-regions-dark-chromium-linux.png differ diff --git a/tests/screenshot.test.ts-snapshots/screenshot-regions-light-chromium-linux.png b/tests/screenshot.test.ts-snapshots/screenshot-regions-light-chromium-linux.png index 3ab20411..0c55c910 100644 Binary files a/tests/screenshot.test.ts-snapshots/screenshot-regions-light-chromium-linux.png and b/tests/screenshot.test.ts-snapshots/screenshot-regions-light-chromium-linux.png differ