Achilless
V2EX  ›  问与答

2w 多个活动 json,写在文件好还是 redis 好

  •  
  •   Achilless · Dec 26, 2019 · 1105 views
    This topic created in 2356 days ago, the information mentioned may be changed or developed.

    2w 多个 json,每个 json 是这样 'devicetype': 'pp', 'deviceno': 'xxxx.xxxx.xxxx', 'devicename': '0000.0000.0000', 'devicemac': '1111.1111.1111', 'sapno': '', 'lanip': '2.2.2.2', 'ip': 4875673894, 'factory': 'xxx', 'modelnum': '', 'agentver': '', 'systemver': '', 'heartbeattime': 1577264228886, 'isonline': 1, 'onlinelength': 1017, 'd_busistate': [{'busitype': 'onlineuser', 'totalcount': 0}]}

    这些 json 是实时更新的,一遍遍的轮询。感觉 2w 多个不是很多,有必要入 redis 么。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 14:44 · PVG 22:44 · LAX 07:44 · JFK 10:44
    ♥ Do have faith in what you're doing.