• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zjsxwc
V2EX  ›  程序员

除了用 redis 直接 incr 外,还有哪些简单方式可以在高并发下获取唯一自增 id?

  •  
  •   zjsxwc ·
    zjsxwc · Aug 3, 2019 · 2338 views
    This topic created in 2502 days ago, the information mentioned may be changed or developed.

    除了用 redis 直接incr外,还有哪些简单方式可以在高并发下获取唯一自增 id ?

    billlee
        1
    billlee  
       Aug 3, 2019
    snowflake
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   974 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:28 · PVG 03:28 · LAX 12:28 · JFK 15:28
    ♥ Do have faith in what you're doing.