美文网首页
微服务中的"thread pool and callback h

微服务中的"thread pool and callback h

作者: yl1415 | 来源:发表于2017-03-27 21:15 被阅读0次

    thread pool hell

    this post content

    • some of the basics of asynchronous programming,
    • the tools that are available in Play 2.1 and Scala,
    • the patterns that make it easy to manage non-blocking code.

    web frameworks handle concurrent requests, I/O, and threads.

    • Threaded: Servlets, Ruby on Rails, Django, PHP
    • Evented: Play, Node.js, Twisted

    Threaded

    • it’s easy for all of them to become tied up waiting for I/O, preventing any new requests from being processed even though most of your threads are just idly waiting.

    Evented

    • even a single long calculation or accidental blocking I/O call can bring an Evented server to its knees.

    Furture的组合

    Java线程模型/执行流程
    Java线程池机制

    http://mmcgrana.github.io/2010/07/threaded-vs-evented-servers.html

    https://engineering.linkedin.com/play/play-framework-async-io-without-thread-pool-and-callback-hell

    https://www.zhihu.com/question/31440152

    相关文章

      网友评论

          本文标题:微服务中的"thread pool and callback h

          本文链接:https://www.haomeiwen.com/subject/clcdottx.html