【问题标题】:How to apply real time notifications in oracle apex without reloading the page (like facebook notifications)?如何在不重新加载页面的情况下在 oracle apex 中应用实时通知(如 facebook 通知)?
【发布时间】:2017-01-29 12:22:49
【问题描述】:

我需要一个餐厅经理的通知系统,当商品的库存在数据库中为零时。

我在 php 的 stackoverflow 中发现了同样的问题。 notifications without reloading the page (like facebook or google plus notifications)

Real time notification from web server to client bowers

【问题讨论】:

  • 听起来您知道要使用的技术,这是 APEX 的绝佳资源。 jsao.io您有具体问题吗?

标签: node.js websocket oracle-apex oracle-apex-5


【解决方案1】:

APEX 实例是否托管在餐厅中?有多少并发用户?

尽量避免使事情过于复杂。当您有大量并发用户时,WebSocket 技术非常棒,因为它可以帮助避免轮询(这会导致大量工作浪费)。

如果实例托管在餐厅或只有一个用户(经理)在使用系统,那么最简单的做法就是每 10 秒左右刷新一次页面或报告一次。它可能没有那么“性感”,但有时最简单的解决方案是最好的。

【讨论】:

    【解决方案2】:

    我将创建一个在这些条件下触发并调用后 REST 服务的 Datase 触发器

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-13
      • 1970-01-01
      • 1970-01-01
      • 2022-06-14
      • 1970-01-01
      • 2020-07-23
      相关资源
      最近更新 更多