brothers in arms
play

Brothers in Arms How to Make MySQL and PostgreSQL Work Together - PowerPoint PPT Presentation

Brothers in Arms How to Make MySQL and PostgreSQL Work Together Charly Batista Senior Support Engineer Santa Clara, California | April 23th 25th, 2018 Agenda Introduction Replication - PostgreSQL Replication - MySQL Replication


  1. Brothers in Arms How to Make MySQL and PostgreSQL Work Together Charly Batista Senior Support Engineer Santa Clara, California | April 23th – 25th, 2018

  2. Agenda • Introduction • Replication - PostgreSQL Replication - MySQL Replication • Challenges • Available solutions - SymmetricDS - Tungsten Replicator - Apache Kafka with Debezium • Demo � 2

  3. Introduction Why replicate data between different databases? • Migrate data from one database to the another with minimal downtime • Feed legacy/in-house systems with web transactions • DW and Reporting • Use the correct technology assets (GEO, Sync Replication, json, etc) � 3

  4. Replication

  5. Replication PostgreSQL Streaming Replication • Physical replication (blocks, byte-by- byte) • Not possible with different major versions • Slaves readable, not writeable • Slaves have same structure as master • Complex timeline control • Re-sync slave often requires new BKP � 5

  6. Replication PostgreSQL Logical Replication (10+) • Uses a publish and subscribe model • Slaves can now be writable • Now possible with different major versions • Transactional consistency is guaranteed for publications within a single subscription • Better granularity and control • Doesn’t replicate DDL � 6

  7. Replication MySQL • Logical Replication • Slaves can be writable • Possible with different major versions* • Good granularity and control • Replicates schema and data � 7

  8. Available solutions

  9. Available solutions SymmetricDS • Trigger based • Scalable • Asynchronous • One way and multi-master • Routing • Filtered Synchronization • Transformation Capabilities � 9

  10. Available solutions Tungsten Replicator • Row-based (heterogeneous) • Asynchronous • Transactionally Consistent • Flexible Extraction • Filtered Synchronization • Transformation Capabilities � 10

  11. Available solutions Debezium (Apache Kafka) • Row-based • Asynchronous/Queue (topics) • Publish/Subscriber model • Transactionally Consistent • Flexible Extraction • Filtered Synchronization • Transformation Capabilities � 11

  12. Challenges There are many challenges when replicating from different DB’s: • Data Type Differences • Provisioning • Database vs. Schema • SQL Dialect Differences • … � 12

  13. Demo Click to add text

  14. Questions? Click to add text

  15. Rate My Session � 15

  16. Thank You Sponsors!! � 16

  17. Thank You!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend