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:

112 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
  4. Get the latest information about RRB Result
    and RRBResult2016 at our site.



    ReplyDelete

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

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

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

    ReplyDelete
  11. 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
  12. 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
  13. 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
  14. 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

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

    ReplyDelete
  17. 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
  18. 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
  19. kindle paperwhite help if you need any help regarding your kindle paperwhite so call us our dedicated kindle paperwhite support team

    ReplyDelete
  20. 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
  21. This comment has been removed by the author.

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

    ReplyDelete

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

    ReplyDelete
  24. 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
  25. 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
  26. This comment has been removed by the author.

    ReplyDelete
  27. 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

  28. 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
  29. 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

  30. 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
  31. 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
  32. 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
  33. 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
  34. 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

  35. 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
  36. It is very useful information. Thank you. For more information related to this Click here

    ReplyDelete
  37. 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

  38. 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
  39. 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.