Home  >  Q&A  >  body text

nginx - How to understand the asynchronous non-blocking high-performance web server advertised by openresty?

I understand asynchronous and synchronous, whether it is blocking or not, but I just don’t understand how openresty implements asynchronous non-blocking IO and achieves high concurrency processing capabilities? I usually write Lua interfaces, but I can see considerable QPS when doing stress tests, but it feels no different from the running process of http API written in other languages ​​(such as PHP interface). Can any hero use an example to briefly explain its implementation on asynchronous non-blocking, and compare it with the PHP interface why PHP cannot implement it.

仅有的幸福仅有的幸福2713 days ago781

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:12:59

    It is recommended to read Brother Chun’s slides to understand.
    http://openresty.org/en/prese...

    reply
    0
  • Cancelreply