Skip to main content
Version: Beta 🚧

DynamoDB Multi-Region Serving

Multi-region serving allows you to serve traffic from multiple regions. There are two key benefits of this

  • Resiliency: By specifying a satellite region, you can increase resilience in case of a regional outage. This can help ensure uninterrupted service for your users.
  • Latency: For applications that are geographically distributed, this helps you get a serving endpoint that's in the same region(s) as your users.

How It Works​

DynamoDB Replication​

Amazon DynamoDB global tables are used to support multi-region serving. The tables that serve online features are replicated from the main region to the satellite regions you've configured for your cluster.

You can also constrain which regions to replicate to using the replica_regions parameter in the DynamoConfig for your Feature View's online_store configuration, to prevent unnecessary replication to certain regions.

DynamoDB Costs

You will incur higher write costs when this is enabled. This is because when you write data to a global table, DynamoDB replicates the write to all of the replica tables in the global table. The number of replicated write request units consumed depends on the number of configured replica regions for that table.

Please refer to DynamoDB Pricing for more details.

Feature Serving Endpoint​

Each satellite region where feature serving is enabled will have its own serving endpoint, which applications can call to retrieve features for that region.

Example:

  • Main Region: my-coffee-shop.tecton.ai/api/v1/feature-service/get-features
  • Satellite Region in us-west-2: my-coffee-shop-usw2.tecton.ai/api/v1/feature-service/get-features
  • Satellite Region in eu-west-1: my-coffee-shop-euw1.tecton.ai/api/v1/feature-service/get-features

Enabling Multi-region serving​

To enable multi-region serving, you must work with our Customer Support team to specify the satellite region where you want to replicate feature serving. We provide you with Terraform scripts that you can use to make the necessary permission changes for replicating DynamoDB tables across regions. At that point, you can use the Tecton SDK to specify replication constraints for specific Feature Views that you don't want to replicate to all your satellite regions.

Was this page helpful?