PostgreSQL data to Redis by Bucardo
JamesLin,2023
PostgreSQL 10以後的logical repliation和第三方的extension的 pglogical 等,這些的問題在於只會複寫tables而不會自動複寫 sequences,且auto incremental的特性在PostgreSQL上是採用sequence,而 Bucardo特色是可以自動複寫sequences
Bucardo支援除了PostgreSQL之外,還支援redis、mongodb、mysql、maria、oracle、drizzle、sqlite
環境:
OS: RHEL8
PG: PostgreSQL 15 (CrystalDB)
Redis: 7.2
Bucardo 5.6
額外注意事項:
perl 要記得安裝 Redis的套件

設定DB時候type要指定redis


啟動Bucardo後,嘗試新增資料,來驗證看是否有寫入到redis

到redis來驗證是否資料已經有寫入(原先的資料和啟動Bucardo後異動的資料)


Last updated