[Talking-Ruby] Use Foreign Data Wrappers in Rails
Use Foreign Data Wrappers in Rails
Foreign Data Wrappers is a fantastic feature of PostgreSQL that allows you to query against external data sources. The external data source is not just a different Postgres database - it could be anything as long as the appropriate extension is available for that particular data source. You can make it work with MySQL
, Redis
, MongoDB
, and even Kafka
, so the flexibility is quite impressive. Nevertheless, let’s focus on Postgres-to-Postgres integration, which is available out of the box.