Skip to content

并发问题 #5

@yantailor

Description

@yantailor

请教一下,您写的(限流 + Redis 缓存库存 + KafkaTest 异步下单)这个接口在kafka发送消息到topic时,高并发的情况下会在redis中重复读到同一个版本号,到了消费者那里拿到版本号对应着数据库的进行更新会抛乐观锁的并发异常导致内容无法被消费,请问怎么解决

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions