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:

179 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. Jobs Chat is one of the biggest Indian Job Site so here you will getAll Government jobs Syllabusso

    ReplyDelete

  9. 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
  10. wow very nice..posttt
    www.shayariimages2017.com

    ReplyDelete
  11. 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
  12. Best Outfits For Young ladies , Womens And Girls
    We Have Some For You In Your Budget For more…..
    Eid Mubarak Poems

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

    ReplyDelete
  14. 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
  15. Fancy designer wear our website and reasonable price More…
    We Have Some For You In Your Budget For more…
    Plz visit:- Wedding Dresses

    ReplyDelete
  16. 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
  17. 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
  18. 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
  19. 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

  20. 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
  21. 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
  22. Thanks for sharing this nice post awesome keep sharing
    Happy New Year 2018

    ReplyDelete
  23. Here are some great and wonderful Valentines Day Gift Ideas for the woman your life. Year by year, there is no denying that coming up with the most perfect and exciting Valentine gift ideas, found right here..valentine week 2018

    ReplyDelete
  24. This is very interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I have shared your web site in my social networks!
    Regards - www.office.com/setup
    www.office.com/setup

    ReplyDelete
  25. kindle paperwhite help if you need any help regarding your kindle paperwhite so call us our dedicated kindle paperwhite support team

    ReplyDelete
  26. On the off chance that you might want to move documents by email or the web to other PC clients and to ensure that your records are coherent, the best choice is to change over them to PDF organize. fill in form

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete

  28. Hi friends ! I'm Archana Kumari. I like to have bed relationship with different persons rather than with a single man for the whole of life. Not only is this my notion , but also is this fact that the secret organs are made for enjoyment.
    Please follow me on the links given bellow.


    Mumbai Escorts
    Mumbai Call girls
    Escorts in Kolkata

    Escorts in Kolkata
    Escorts In kolkata
    Jaipur Call girls


    Kolkata Escorts
    Call girl in Kolkata
    House wife escorts in Kolkata
    If you are interested in me and my ideology ,then you are invited to my bed. Thanks.
    ========================================================

    ReplyDelete
  29. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.

    www.office.com/setup
    www.norton.com/setup
    office.com/setup

    ReplyDelete
  30. Hey Thanks for sharing this valuable information with us. I will come back to your site and keep sharing this information with us.
    Best Regards - www.office.com/setup
    www.office.com/setup
    www.office.com/setup

    ReplyDelete
  31. referensi website taruhan bola bisa Anda lihat di agen bola sahabat arena

    ReplyDelete

  32. Great Article! i'm Strictly looking forward for your next information.
    Whatsapp Status

    ReplyDelete
  33. you have visit in the bangalore escorts
    cite with meet to hotel are best fantasia programmer to the all are enroot to party dance and romantic song with by very hard dies and pure feed wine and Rome to used all girls and boy have to be good enjoy
    https://www.whollymodels.com
    https://www.whollymodels.com/about.php
    https://www.whollymodels.com/services.php
    https://www.whollymodels.com/gallery.php
    https://www.whollymodels.com/rates.php
    https://whollymodels.com/blog/
    bangalore escorts
    escorts in Bangalore
    bangalore escorts service
    https://www.whollymodels.com

    ReplyDelete
  34. Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return.
    Happy Valentines Pictures
    Valentines Day 2019 Messages

    ReplyDelete
  35. This comment has been removed by the author.

    ReplyDelete
  36. Thanks For sharing such an amazing article, I really love to read your content regularly.Amazing!!! I like this website so much it’s really awesome. I have also gone through your other posts too and they are also very much appreciates able and I’m just waiting for your next update. positive quotes about life |positive quotes for work |short positive quotes | positive thoughts quotes |positive quotes |
    Enjoy Our collection.

    ReplyDelete

  37. Appreciating the hard work you put into your site and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material, Asking questions are truly good thing if you are not understanding something fully, except this article presents pleasant understanding yet, Please stay us informed like this. Thank you for sharing.

    This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.

    great faith quotes||faith quotes bible||faith quotes images

    ReplyDelete

  38. After 15 years of serving high-quality Indian cuisine to curry-loving oxfordians as the oxford’s best Indian restaurant, Tree Hotel Iffley is now one of the best takeaway Indian restaurant. They are sering all kind of Indian food north Indian, delhi street foods, Veg, Non -Veg etc. The people of oxford or near by areas always come to taste the spicy food by an Indian chefs at Tree hotel
    restaurants in oxford centre
    Indian Restaurant Oxford

    ReplyDelete
  39. Hospital and Medical Cleaning is a major critical when it comes to hygiene and patient safety. Ensuring medical areas within hospitals, and clinics are disinfected and cleaned to the best possible standard is essential for cleaning department.
    medical supplies online birmingham

    ReplyDelete

  40. Thanks For this new article i like it keep it up.I am always searching online for articles that can help me. There is obviously a lot to know about this.||Attitude Status In Hindi || Love Status In Hindi|| I think you made some good points in Features also. Keep working, great job ! फेसबुक स्टेटस हिंदी 2019 || Status FB || Check Out Amazing Content.

    ReplyDelete
  41. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.

    norton.com/setup
    mcafee.com/activate
    office.com/setup

    ReplyDelete
  42. Bangalore is the middle reason for gets a kick out of the event that you have come to Bangalore for some sort of guest trek so you are in the correct spot since we have the ideal call young ladies in Bangalore. Each individual on the planet has a fantasy to contribute quality essentialness with the world most dazzling two or three women. On the off chance that you are checking for an impeccable call young lady in Bangalore, as long as it's genuine, we can make it valuable for you. We have the most wonderful with a colossal limit call young ladies in Bangalore from all over India. Clients from all over India call us to search for that remarkable date with a hot young lady. We have supervised for everything. We can even pick the spots to go and the exercises in case you are feeling like you basically need to lay back and welcome the riders.
    Bangalore Female Escorts

    ReplyDelete
  43. Bangalore is the middle reason for gets a kick out of the event that you have come to Bangalore for some sort of guest trek so you are in the correct spot since we have the ideal call young ladies in Bangalore. Each individual on the planet has a fantasy to contribute quality essentialness with the world most dazzling two or three women. On the off chance that you are checking for an impeccable call young lady in Bangalore, as long as it's genuine, we can make it valuable for you. We have the most wonderful with a colossal limit call young ladies in Bangalore from all over India. Clients from all over India call us to search for that remarkable date with a hot young lady. We have supervised for everything. We can even pick the spots to go and the exercises in case you are feeling like you basically need to lay back and welcome the riders.
    Bangalore Female Escorts

    ReplyDelete
  44. Run From My Computer" installs the main application or tool to the PC but does not install subfeatures. "Run All From My Computer" installs the application and all of its subfeatures. For more info do visit:-
    office.com/setup

    norton.com/setup

    mcafee.com/activate

    ReplyDelete
  45. This is really an amazing blog. Your blog is really good and your article has always good thank you for information.


    โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
    เพียงแค่คุณสมัคร Gclub กับทางทีมงานของเราเพียงเท่านั้น
    ร่วมมาเป็นส่วนหนึ่งกับเว็บไซต์คาสิโนออนไลน์ของเราได้เลยค่ะ
    สมัครสมาชิกที่นี่ >>> Gclub online

    ReplyDelete
  46. Latest Internship Jobs Updates Jobs portal Fresher Internship Jobs Updates

    Part time Jobs Contract jobs Latest Railway Jobs

    All Latest Railway Jobs over India Best Jobs Portal All India Metros and Railways Jobs Portal

    Daily Current Affairs Updates States and Central Indians Jobs No 1 Site Latest Current Affairs

    Get All the Latest Jobs Updates Indians Jobs No 1 Site All Latest India Jobs Portal

    ReplyDelete
  47. best headphones in india wired with mic Latest offers on Headphones in india

    Top wireless headphones in india Bluettoth gadgets in india

    latest headphones offers with mic Best bank offers on head phones

    Top 10 laptops in india Wallet Offers on Laptops in india

    Best Laptops offers in india cashback offers on laptops

    Top 10 wifi routers in india best offers on wifi routers in india

    ReplyDelete

  48. tgjobsnews is the best job website for all govt jobsRailway Jobs

    tgjobsnews is India's top most job website Central Govt Jobs

    tgjobsnews is one of the India's top most job website All India Govt Jobs

    tgjobsnews is the top most job websiteAll India Central Govt Jobs

    Best Govt Job WebsiteTg Jobs News

    ReplyDelete
  49. best website for cashback offers in myntra and other shopping sitesawesome offers on sarees

    best website for cashback offers in homeshop18 and other shopping sitesbest coupons on electronics

    best website for cashback offers in nykaa and other shopping sitesoffers on jeans

    best website for cashback offers in purple and other shopping sitesbest coupons on watches

    best website for cashback offers in amazon and other shopping sitesoffers on fashion tops

    ReplyDelete
  50. Snapdeal cashback Offer Online best Shopping offer
    Yepme Cashback offer Best Online discounts
    Firstcry Cashback offer Online discounts
    Hotspotch Cashback offer amazing Online discounts
    tata cliq Cashback offer Online coupons discounts

    ReplyDelete
  51. It is very useful information. Thank you. For more information related to this Click here

    ReplyDelete
  52. chain necklace sale ! Nice styles at reasonable prices. There are other hot sales available in Aixonne like iPhone screen protector glass and also cute iPhone case xr case and for other iPhones.
    https://aixonne.com/l/necklace.html
    https://aixonne.com/l/iPhoneCase.html
    https://aixonne.com/l/iPhoneTemperedGlass.html
    iPhone xs max case
    iPhone 7 case
    iPhone 8 case

    ReplyDelete
  53. Need any help regarding Kindle device? Call kindle help guide expert team on toll – free kindle helpline number USA\Canada: (+1) 8889494666, UK: (+44) 8000418324 or visit our website kindle help guides. We offer our services throughout USA, Canada and UK.

    ReplyDelete

  54. At Halo Construction we believe that a high quality remodel adds enormous value to a residential or commercial property.
    Halo Construction
    Halo Construction and Restoration

    ReplyDelete
  55. I am Mukesh Rawat. I have just started a motivational and inspirational blog named InspiringByte. Here you will get motivational quotes, inspirational status, shayari, success stories, biography and Gym Status In Hindi and How to stay motivated all the time in hindi and many more things related to motivation. We all know we all need motivation in life, so i have started this blog.

    ReplyDelete

Note: Only a member of this blog may post a comment.