clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
490 stars 110 forks source link

Question: multi-region support #94

Closed pierreis closed 7 years ago

pierreis commented 7 years ago

Is there a way with Dynogels to setup multi-region support? That is, direct reads and writes to different tables on different region (that is, read locally and write to a different region)?

For example, Mapbox's Dyno offers that feature: "For situations where you may wish to write to one database and read from another. Dyno allows you to configure a client with parameters for two different tables, then routes your individual requests to the appropriate one."

Having this possibility with the awesome ORM interface that Dynogels provides would be a must!

clarkie commented 7 years ago

This isn't something I've really considered or needed (yet!). How would you go about supporting this? We've only ever needed to migrate data between two tables in the same region.

pierreis commented 7 years ago

Hi Clarkie. Sorry for not answering before – vacations. I will definitely consider creating a proof of concept in the next few weeks in order to try the thing.

The bare usage of the ORM should be something really simple. I'm just not sure about the best way to handle the process of creating tables for that use case.