nonesuccess
V2EX  ›  问与答

要实时监控某个系统的数据更新,要怎么样实现?触发器可以做到吗?

  •  
  •   nonesuccess · May 25, 2016 · 2366 views
    This topic created in 3670 days ago, the information mentioned may be changed or developed.

    要对接一个监控系统,实现的效果大概是,监控识别出一个车辆后,这边的界面中就显示“过车了!”。这种需求用什么方案比较好呢?

    那边的数据库用的是 oracle ,现在想的方案是,在他们的数据库上做一个触发器, oracle 的触发器好像可以调用 java 代码,写一个通过发送 http post 请求来通知我们系统的方法,在有 insert 发生时就触发。我们是个 b/s 的系统,再通过 websocket 的方式,刷新浏览器,达到实时的效果。不知道这个方案可行不可行,或者还有没有其它更好的方案

    2 replies    2016-05-25 12:28:20 +08:00
    cxh116
        1
    cxh116  
       May 25, 2016
    阿里的数据库增量同步?

    https://github.com/alibaba/yugong/wiki/QuickStart

    解析增量生成的 sql?
    lissome
        2
    lissome  
       May 25, 2016
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2822 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:19 · PVG 19:19 · LAX 04:19 · JFK 07:19
    ♥ Do have faith in what you're doing.