search

Home  >  Q&A  >  body text

php - How to check the execution order of Redis commands under high concurrency?

Ask a question: I use the ab tool to test the program I wrote. Redis is used in the program. I want to know in what order redis executes commands under high concurrency conditions. The picture below was posted by a netizen. It is what I want, but I don’t know where or how he got it:

Thanks!

给我你的怀抱给我你的怀抱2719 days ago1253

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-06-20 10:08:08

    redis-cli monitor
    
    redis-benchmark -q -n 100000 # benchmark另开窗口运行.
    
    

    reply
    0
  • 阿神

    阿神2017-06-20 10:08:08

    The article upstairs is very good. In fact, this thing is the same as subscribing and pre-publishing. One needs to wait for the result synchronously. Only by operating on redis can you see the results.

    reply
    0
  • Cancelreply