Tuesday, November 4, 2014

The internals H2O (or how to write a fast server)

Yesterday, I had the opportunity to speak at the HTTP2Conference held in Tokyo.

Until now, I have rather been silent about H2O since I think it is still premature for wild use. But you do not need to worry about such thing in a technology conference, so I happily talked about the motives behind H2O, and its implementation.

IMO the talk should be interesting not only to people working with HTTP server implementations but also to those interested in programming in general, since it covers the common performance pitfalls (or misconceptions as I see) in many server implementations.

Below are the slides and the recorded video of my presentation.

Enjoy!

PS. Please forgive me for the provocative attitude in the questions raised in the last part of the slides. They were intentionally written as such in order to spark discussion at the hall.



my talk starts a 3h15m (in Japanese)

Related links:

73 comments:

  1. You mentioned speed without using SIMD instructions. I see that you are doing a subtraction for every char, would it be faster to use SIMD to do 4 substractions at once?

    ReplyDelete
    Replies
    1. Recently a PR that uses pcmpestri (a SSE4.2 instruction) has been merged. The PR is https://github.com/h2o/picohttpparser/pull/5 and the benchmark numbers are https://github.com/h2o/picohttpparser/#benchmark

      Delete
  2. I was looking at the src/main.c and found that each thread is creating it's own listeners queue using the server listeners. Isn't this a mistake ?
    What will happen when there is more than one thread ?
    All of then will wakeup and try to manage the accepted socket ?
    Why not accepting the listeners only in main process and distribute the accepted sockets to threads after ?

    Am I missing something here ?

    Cheers !

    ReplyDelete
  3. Online channels have revamped the methodology in education where aspirants can access knowledge from any part of the globe. To have effective access to this facility it is important to have a professional portal like Management assignment help. See more make my thesis

    ReplyDelete
    Replies
    1. watch indy 500 live

      http://watchindy500live.xyz/

      http://watch-indy-500-live.blogspot.com/

      https://www.pinterest.com/watchindy500liv/

      http://vk.com/watchindy500live

      https://twitter.com/watchindy500liv

      https://www.facebook.com/Watch-Indy-500-live-stream-1772286749649379/

      Delete
  4. Get the latest information about RRB Result
    and RRBResult2016 at our site.



    ReplyDelete
  5. solidworks crack
    solidworks download
    solidworks tutorial
    learn solidworks online
    http://solidworkscrack.blogspot.com/
    http://solidworkscrack.blogspot.com/2016/06/solidworks-free-download-full-version.html
    http://solidworkscrack.blogspot.com/2016/06/learn-solidworks-tutorials-online.html http://solidworkscrack.blogspot.com/2016/06/learn-solidworks-tutorials-online.html

    ReplyDelete
  6. Create short url موقع اختصار الروابط http://www.3nwan.net/vb
    http://www.sheikhmaghreb.com/

    ReplyDelete

  7. All the tips are really amazing, I used to blog back in 2012-2013 but due to some personal crisis let it high and dry. Now I am thinking of getting back at it. After reading your post I realized that , we must have dedication and must have our priorities straight if we want to achieve something.SolidWorks 2017 Crack

    ReplyDelete

  8. شركات للربح من اختصار الروابط
    موقع اختصار الروابط
    Create short url
    http://www.3nwan.net/vb
    Create short url
    موقع اختصار الروابط

    قائمة أفضل شركات الربح من اختصار الروابط
    تعتبر طريقة الربح من إختصار الروابط من أفضل طرق الربح من الأنترنت نظرا لسهولتها من جهة وفي كونها لا تتطلب منك مجهودا كبيرا للربح منها فكل ما عليك فعله هو تحويل الروابط مثل روابط المواقع المهمة أو روابط تحميل الملفات أو أي نوع آخر يجذب الناس للضغط عليه في موقع الشركة ثم تقوم بنشر الرابط الجديد في موقعك أو عبر المنتديات وشبكات التواصل الإجتماعي.
    http://www.sheikhmaghreb.com/
    خدمة اختصار الروابط الأولى من نوعها برؤية عربية احترافية.. اختصر روابطك الطويلة بضغطة زر إلى روابط قصيرة يسهل تذكرها.
    جلب الحبيب
    الشيخ الروحاني
    هته الشركة تدفع أسعار جيدة للألف ظهور خاصة بالنسبة للدول العربية فمثلا تدفع 1.14 دولار للألف زائر من السعودية و 1.13 دولار من قطر و 1.23 دولار من الأردن و 1.85 من الإمراات العربية المتحدة 2.65 دولار من العراق و 0.57 دولار من مصر و 0.43 دولار من الجزائر والمغرب و 0.41 من لبنان و 0.42 من عمان و 0.44 من الكريت و 0.37 من سوريا أما بالنسبة للبلدان الأجنبية فهي تدفع 3.93 دولار للألف زائر من الولايات المتحدة الأمريكية و 2.78 من المملكة المتحدة و
    الشيخ الروحاني
    جلب الحبيب
    الحد الأدنى للدفع: 5 دولار
    طريقة الربح من موقع اختصار الروابط شركات الربح من اختصار الروابط شرح الربح من اختصار الروابط


    ReplyDelete
  9. The share your really gives us excitement. Thanks for your sharing. If you feel tired at work or study try to participate in our games to bring the most exciting feeling. Thank you!
    hotmail sign in | red ball 1

    ReplyDelete
  10. Jobs Chat is one of the biggest Indian Job Site so here you will getAll Government jobs Syllabusso

    ReplyDelete

  11. Wonderful blog! I found it while searching on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Many thanks.
    tanki online 3 | 2048 online

    ReplyDelete
  12. wow very nice..posttt
    www.shayariimages2017.com

    ReplyDelete
  13. A good informative post that you have shared and thankful your work for sharing the information. I appreciate your efforts and all the best. Got some appealing information and would like to give it a try. Applaud your work and keep sharing your information. Printable Calendar


    ReplyDelete
  14. Best Outfits For Young ladies , Womens And Girls
    We Have Some For You In Your Budget For more…..
    Eid Mubarak Poems

    ReplyDelete