Giter Club home page Giter Club logo

Comments (9)

bootsrc avatar bootsrc commented on September 2, 2024

秒杀使用一个队列。 支付过程如果并发量大,可以写入另外一个队列,或者不经过队列

from jseckill.

bootsrc avatar bootsrc commented on September 2, 2024

总共2个阶段。
step1 秒杀(抢到商品)
step2 对抢到的商品订单进行付款

from jseckill.

KyrieXu11 avatar KyrieXu11 commented on September 2, 2024

总共2个阶段。
step1 秒杀(抢到商品)
step2 对抢到的商品订单进行付款

嗯嗯,流程很清楚,但是我就是在想,在秒杀过程中仅仅只使用一个队列会不会导致吞吐量不高的情况。

from jseckill.

bootsrc avatar bootsrc commented on September 2, 2024

总共2个阶段。
step1 秒杀(抢到商品)
step2 对抢到的商品订单进行付款

嗯嗯,流程很清楚,但是我就是在想,在秒杀过程中仅仅只使用一个队列会不会导致吞吐量不高的情况。

一般的,秒杀过程用一个队列即可。
除非一个队列生产环境遇到了性能瓶颈, 才考虑增加队列个数。

from jseckill.

KyrieXu11 avatar KyrieXu11 commented on September 2, 2024

总共2个阶段。
step1 秒杀(抢到商品)
step2 对抢到的商品订单进行付款

嗯嗯,流程很清楚,但是我就是在想,在秒杀过程中仅仅只使用一个队列会不会导致吞吐量不高的情况。

一般的,秒杀过程用一个队列即可。
除非一个队列生产环境遇到了性能瓶颈, 才考虑增加队列个数。

好的,谢谢大佬的耐心解释,我没有什么高并发的经验,就以为一个队列太少了。

from jseckill.

bootsrc avatar bootsrc commented on September 2, 2024

rabbitmq的性能非常高。 比如说一秒钟写入成千上万,甚至几万条消息,都是没问题的。

from jseckill.

KyrieXu11 avatar KyrieXu11 commented on September 2, 2024

rabbitmq的性能非常高。 比如说一秒钟写入成千上万,甚至几万条消息,都是没问题的。

我对rocketmq比较熟悉一些,打算用rocketmq来替换一下你做的这个秒杀项目😂

from jseckill.

MarvellousBaby avatar MarvellousBaby commented on September 2, 2024

rabbitmq的性能非常高。 比如说一秒钟写入成千上万,甚至几万条消息,都是没问题的。

我对rocketmq比较熟悉一些,打算用rocketmq来替换一下你做的这个秒杀项目😂

rocket的时效没有rabbit好

from jseckill.

chen821493467 avatar chen821493467 commented on September 2, 2024

from jseckill.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.