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:

119 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
  15. Exclusive Collection of Salwar Suit and Many More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Silk sarees

    ReplyDelete
  16. Exclusive Collection of Salwar Suit and Many More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Pakistani Suit

    ReplyDelete
  17. Super website with a great sharing and amazing stories is ur web.. please keep doing what u do now.. Heart Clipart thanks to you, Tiger Clipart
    It's a great sharing and really informative.. will keep following ur web. Star Clipart thanks to you and ur great website.
    Tree clipart

    ReplyDelete
  18. Fancy designer wear our website and reasonable price More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Wedding Dresses

    ReplyDelete
  19. Happy 4th of July Flag 2017: Flag of America is not just a piece of cloth but a matter of pride for every citizen of the country where it stands for the pride of the country and wave in the air to represent the nations.
    4th of july flag
    4th of July Celebration
    4th July 1776 History
    Funny 4th of July Memes Images

    ReplyDelete
  20. Freedom is something that money can't buy.. And most honorable of all are the ones who defend it. So on this 4th of July. Let's salute those who stand in service to America!
    happy 4th of july images
    Happy 4th of July Messages
    Happy 4th of July Wishes 2017
    4th of July Images for Facebook

    ReplyDelete
  21. The most unique way to celebrate Friendship Day would be hold a gathering for your favorate images,quotes,hd wallpapers,messages,pics,photos and many more... Be that as it may, this thought needs a touch of arranging and exertion as you have to choose where to post(facebook,whatssapp,twitter,instagrame etc..) Once that is done, ring your pals and simply have your indulgence !

    happy friendship day images
    happy friendship day 2017
    friendship day quotes
    happy friendship day quotes
    friendship images with quotes
    friendship day messages
    friendship day wishes
    happy friendship day message
    friendship day status
    friendship day date
    happy friendship day date
    happy friendship day images

    ReplyDelete
  22. An extraordinary thought to praise friendship in an inventive way is make a blurb on Friendship Day this year.
    friendship day 2017
    friendship images
    friendship day pic
    friendship day pics
    friendship day photos
    For some the best sort of Friendship Day festivity is maybe a heart-to-heart converse with a best friend Sharing everything that has made a difference to you and your frinds for so......
    friendship day wallpapers
    photos of friendship
    friendship quotes images

    friendship images hd
    true friendship images

    ReplyDelete
  23. The blog or and best that is extremely useful to keep I can share the ideas of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.

    Halloween Costume Ideas Images for Couples
    How to make Halloween Costumes for Girls and Women
    Watch Video on Youtube to make Halloween Costumes for Girls and Women
    Tips to make your Best Halloween Costume

    ReplyDelete
  24. The information you have posted is very useful. Thank you for nice and wonderful Information.
    Freshers Job
    Government Job
    Bank Job
    Walk In Drive
    OFF Campus Drive

    ReplyDelete
  25. The information you have posted is very useful. Thank you for nice and wonderful Information.
    Freshers Job
    Government Job
    Bank Job
    Walk In Drive
    OFF Campus Drive

    ReplyDelete

  26. Thank you so much for Sharing this article Awesome post People also like this information
    SBI Help Visit here I really really appreciate this article

    ReplyDelete
  27. a pride for me to be able to discuss on a quality website because I just learned to make an article on
    cara menggugurkan kandungan

    ReplyDelete