Regions
TerraScale is available in 19 regions worldwide, allowing you to deploy databases close to your users for optimal performance.
North America
Section titled “North America”| Code | Region ID | Location |
|---|---|---|
ord | us-ord | Chicago, IL, USA |
ewr | us-east | Newark, NJ, USA |
sfo | us-west | Fremont, CA, USA |
lax | us-lax | Los Angeles, CA, USA |
sea | us-sea | Seattle, WA, USA |
mia | us-mia | Miami, FL, USA |
South America
Section titled “South America”| Code | Region ID | Location |
|---|---|---|
gru | br-gru | Sao Paulo, Brazil |
Europe
Section titled “Europe”| Code | Region ID | Location |
|---|---|---|
lhr | eu-west | London, UK |
fra | eu-central | Frankfurt, Germany |
cdg | fr-par | Paris, France |
ams | nl-ams | Amsterdam, Netherlands |
mil | it-mil | Milan, Italy |
mad | es-mad | Madrid, Spain |
sto | se-sto | Stockholm, Sweden |
Asia Pacific
Section titled “Asia Pacific”| Code | Region ID | Location |
|---|---|---|
sin | ap-south | Singapore |
syd | ap-southeast | Sydney, Australia |
nrt | ap-northeast | Tokyo, Japan |
maa | in-maa | Chennai, India |
cgk | id-cgk | Jakarta, Indonesia |
Choosing a Region
Section titled “Choosing a Region”When selecting a region for your database, consider:
Latency
Section titled “Latency”Choose the region closest to your users for the lowest latency. If your users are spread globally, consider multi-region replication.
Data Residency
Section titled “Data Residency”Some regulations require data to be stored in specific geographic locations. Choose a region that meets your compliance requirements.
Disaster Recovery
Section titled “Disaster Recovery”For high availability, deploy in multiple regions and use automatic failover.
Setting the Default Region
Section titled “Setting the Default Region”- Go to Settings > Preferences
- Select your Default Region from the dropdown
- Click Save
New databases will use this region by default.
var client = new TerraScaleDatabase(new TerraScaleDatabaseOptions{ ApiKey = "ts_live_your_api_key", Endpoint = "https://api.terrascale.io", Region = "us-east", // Default region DefaultDatabase = "my-database"});When creating a database, specify the region:
POST /api/v1/management/databases{ "name": "my-production-db", "region": "eu-west"}Regional Endpoints
Section titled “Regional Endpoints”TerraScale uses intelligent routing to automatically direct requests to the optimal region. You can use the global endpoint:
https://api.terrascale.ioRequests are automatically routed based on:
- The database’s primary region
- Multi-region replication configuration
- Current region health and availability
Why Airport Codes?
Section titled “Why Airport Codes?”TerraScale uses airport codes (IATA codes) as region identifiers because:
- They are a globally recognized standard
- They clearly indicate geographic location
- They are concise and memorable
- They follow industry conventions used by other cloud providers
Uniform Pricing
Section titled “Uniform Pricing”All regions have the same pricing. We calculate the median cost across all regions so that less expensive regions compensate for more costly ones. This simplifies billing and makes costs predictable for multi-region deployments.
Multi-Region Deployment
Section titled “Multi-Region Deployment”For global applications, TerraScale supports multi-region replication:
- Automatic synchronization across regions
- Intelligent routing based on user location
- Failover protection for high availability
See Multi-Region Replication for configuration details.
Next Steps
Section titled “Next Steps”- Multi-Region Replication - Configure cross-region sync
- Getting Started - Create your first database
- Best Practices - Optimization tips