 In the future, we will try and hold this event like once every two months and if anybody who wants to step up and be co-organiser can just contact me okay because it will be good to have more eyes and ears and hands and brain okay so i will go on to the next topic okay so this topic is Http2 and express it was actually inspired by a Http2 topic that was presented by the PHP user group about two months ago yeah so i have to give them some credit no actually we give them credit for this okay so what are the features of Http2 the most important is that is backward compatible with Http1 so basically the same methods that are that are used like get put post all this and the status codes it's all the same so the next one that's important is actually the multiplex streams so currently Http1 every request you do it's a it's one connection you have to establish get the data and close so if like you have many pictures to pull for the web page you basically open and close open and close many many times so for Http2 you just open one time every request using that one connection uh to to get all the data okay the next thing is is header compression so the the headers is all is compressed uh there's this server push but they are still still figure out what to use it for some people say that the sum of the css not important to load they'll push it out later the other one is binary protocol so the responses for Http2 is um no more text so if you want to use the curl and you see it's a bit harder to see what you are getting back then the request priorities this another one where you can prioritize the request uh this is an obscure feature which uh also actually it's just they're not sure how good it will be in the real world okay so due to multiplexing and handling of multi request handling multiple request is cheap in Http2 because you have only one dns lookup one connection one slow start then you don't need to shut the domains um so a lot of trouble can be taken out you don't need to catenate your js files or your css files you can just yeah serve as many i mean a few files um all these things are inlining and spriting is no longer needed um and you don't really need to batch your methods for the restful api calls so it's your restful call you need to do one call which calls another five or ten calls you can just go ahead and use http2 without needing to write something to batch or the the api calls so yeah this the benefits so what's the downs the other thing is um major browsers uh actually it's not a benefit but major browsers require http s for http2 that is a firefox chrome and i think a microsoft h the other benefit is with a header compression and a binary protocol you have a smaller network footprint the drawbacks is the binary protocol is harder to debug the response and it requires because of the http s you require a certificate so for development you can use self-sinsert but production i think you need to get you can get a free ones ah from less encrypt yeah they are free ones okay so the yeah i mentioned really the most support i accept safari and opera mini i can see it from this website cannotuse.com and then you just search for http2 they'll tell you which one can use which one cannot use okay so on the server side those using php or patchy you just need to use this a mod http2 nginx from version 1.9.5 plus onwards our iis is version 10 on windows 10 or server 2016 so yeah you can start playing around with http2 if you have all this the other these are quite new this h2o i do take note of this there's quite a bit of write up on this because this one is purely built for i think they focus on http2 this h2o server yeah so yeah aperture nginx h2o so the references that i took for this uh this uh this talk was from from from all these sources API card regarding how http2 uh what you can expect for restful api services for http2 okay so um before i go to the demo there's one side that uh i like to show i think it's on akamai so there's a http2 demo oh yeah you can't see it yet because i need to do this okay so this is the http1 loading this http2 so you see this one loading lots of small little files they have lots of requests and using many many connections whereas this one has one connection and then they do many requests in a one connection and you can see uh this uh the load time is much faster don't have to up and tear down so do take note of this this one was shown during the php meetup okay so now going to the demo um for those of you who are using note js it's very straightforward uh basically you do an npm install express and then after that you do a npm install spdy not http2 because http2 to this module will not work on the current express which is version 4 hanya apabila version 5 ini akan bekerja jadi selepas itu untuk menghasilkan ssl cert okay jadi biar saya masuk ke dalam jadi ini adalah ini adalah file projek yang sudah ssl cert ini ini adalah kode yang berjalan ini sangat mudah dan mudah anda perlukan file system fs untuk sebenarnya membaca certifikasi untuk menghubungi sebagai pilihan dan kemudian menghargai aplikasi jadi ini adalah aplikasi yang sangat mudah saya akan mulakan dengan http2 dulu dan apa yang berlaku adalah okey apabila anda menggunakan aplikasi maaf bukan http2 ini adalah ini adalah http ya http jadi apabila anda menggunakan aplikasi saya akan membuat pilihan f5 yang ini saya perlu mulakan okey maaf saya memilih okey jadi selepas memilih yang ini anda akan melihat protokol adalah http1 jadi saya akan mengubah untuk ini adalah bagaimana anda menggunakan apabila anda menggunakan http2 atau http1 apabila anda menggunakan aplikasi atau apa-apa saja yang anda menggunakan jadi sekarang saya akan mengubah untuk http2 bagaimana anda tidak membunuh diri okey jadi untuk http2 saya akan melakukan f5 okey dan apa yang berlaku adalah di sini anda melihat protokol ini h2 saya rasa beberapa anda tidak dapat melihat tapi itu hanya pilihan h2 di sini untuk mengindikkan http2 jadi ini adalah bagaimana anda mengubah untuk apabila http1 atau 2 anda dapat menggunakan aplikasi jadi mereka akan beritahu anda apa yang berlaku jadi saya rasa dengan ini saya datang ke atas dari atas dan jadi pada masa ini adalah pembukaan ada sesiapa yang akan ingin membuat penerbangan yang anda mencari atau mencari kerja atau jika tidak, kita hanya boleh berada di luar dan hanya mempunyai sesuatu penerbangan sebelum bergerak sesiapa-siapa yang beritahu sesuatu