MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
kofj
V2EX  ›  MySQL

MySQL 除了使用 UDF 还有什么方法可以和外部程序通讯?

  •  
  •   kofj ·
    kofj · Oct 11, 2014 · 4456 views
    This topic created in 4259 days ago, the information mentioned may be changed or developed.
    MySQL是使用的阿里云的RDS,需要在插入新数据的时候同步部分数据到Redis里面,除了使用UDF(阿里云RDS没办法啊)还可以使用什么方法把数据同步到Redis里面去?

    P.S. 目前想到的最笨的办法就是在写入数据的程序里面加一段向Redis中写入数据的代码。但是!这不符合我经常向数据库直接导入数据的情景。
    4 replies    2014-10-13 19:49:52 +08:00
    incompatible
        1
    incompatible  
       Oct 11, 2014   ❤️ 1
    在应用层面来解决 使用后台进程监控你的表 发现插入了新数据后,将其同步至redis
    kofj
        2
    kofj  
    OP
       Oct 11, 2014
    @incompatible 想到了使用中间件,比如MySQL_PROXY,通过lua脚本截取insert的数据同步到Redis当中
    nybux
        3
    nybux  
       Oct 11, 2014
    如果可以主从的话,可以考虑下这个
    https://github.com/alibaba/canal
    kofj
        4
    kofj  
    OP
       Oct 13, 2014
    @nybux RDS做不了主从~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3199 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:25 · PVG 08:25 · LAX 17:25 · JFK 20:25
    ♥ Do have faith in what you're doing.