Take Your HTTP Server to Ludicrous Speed [I]
Take Your HTTP Server to Ludicrous Speed [I] - Matteo Collina, nearForm
Express, Hapi, Restify, or just plain Node.js core? Which framework should I choose? In my journey in nodeland, I always wonder about the cost of my abstractions. require(‘http’) can reach 25k requests/sec, Express 9k, and Hapi 2k.
I started a journey to write an HTTP framework with extremely low overhead, and Fastify was born. With its ability to reach an astonishing 20k requests/sec, Fastify can halve your cloud server bill.
How can Fastify be so.. fast? We will see start by analyzing flamegraphs with 0x, and then delve into --v8-options, discovering how to leverage V8’s feedback and optimize our code. We will discuss function inlining, optimizations and deoptimizations. We will discuss the tools and the libraries you can use to do performance analysis on your code. In Fastify we reach a point where even allocating a callback is too slow: Ludicrous Speed.
About
Matteo Collina
nearForm
Software Architect
Websitenearform.com
Matteo is a code pirate and mad scientist. He spends most of his days programming in Node.js, but in the past he worked with Ruby, Java and Objective-C. In 2014, he defended his Ph.D. thesis titled "Application Platforms for the Internet of Things". Now he is a Software Architect at nearForm, where he consults for the top brands in world. Matteo is also the author of the Node.js MQTT Broker, Mosca, the fast logger Pino and of the LevelGraph database. Since 2015, he is a Node.js collaborator, where he helps maintaining Streams. Matteo spoke at several international conferences: Node.js Interactive, NodeConf.eu, NodeSummit, LXJS, Distill by Engine Yard, and JsDay to name a few. He is also co-author of the book "Javascript: Best Practices" edited by FAG, Milan. In the summer he loves sailing the Sirocco.
Видео Take Your HTTP Server to Ludicrous Speed [I] канала node.js
Express, Hapi, Restify, or just plain Node.js core? Which framework should I choose? In my journey in nodeland, I always wonder about the cost of my abstractions. require(‘http’) can reach 25k requests/sec, Express 9k, and Hapi 2k.
I started a journey to write an HTTP framework with extremely low overhead, and Fastify was born. With its ability to reach an astonishing 20k requests/sec, Fastify can halve your cloud server bill.
How can Fastify be so.. fast? We will see start by analyzing flamegraphs with 0x, and then delve into --v8-options, discovering how to leverage V8’s feedback and optimize our code. We will discuss function inlining, optimizations and deoptimizations. We will discuss the tools and the libraries you can use to do performance analysis on your code. In Fastify we reach a point where even allocating a callback is too slow: Ludicrous Speed.
About
Matteo Collina
nearForm
Software Architect
Websitenearform.com
Matteo is a code pirate and mad scientist. He spends most of his days programming in Node.js, but in the past he worked with Ruby, Java and Objective-C. In 2014, he defended his Ph.D. thesis titled "Application Platforms for the Internet of Things". Now he is a Software Architect at nearForm, where he consults for the top brands in world. Matteo is also the author of the Node.js MQTT Broker, Mosca, the fast logger Pino and of the LevelGraph database. Since 2015, he is a Node.js collaborator, where he helps maintaining Streams. Matteo spoke at several international conferences: Node.js Interactive, NodeConf.eu, NodeSummit, LXJS, Distill by Engine Yard, and JsDay to name a few. He is also co-author of the book "Javascript: Best Practices" edited by FAG, Milan. In the summer he loves sailing the Sirocco.
Видео Take Your HTTP Server to Ludicrous Speed [I] канала node.js
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Understanding and Debugging Memory Leaks in Your Node.js Applications [I]](https://i.ytimg.com/vi/hliOMEQRqf8/default.jpg)
![Node.js Performance and Highly Scalable Micro-Services - Chris Bailey, IBM](https://i.ytimg.com/vi/Fbhhc4jtGW4/default.jpg)
![The Node.js Event Loop: Not So Single Threaded](https://i.ytimg.com/vi/zphcsoSJMvM/default.jpg)
![Morning Keynote- Everything You Need to Know About Node.js Event Loop - Bert Belder, IBM](https://i.ytimg.com/vi/PNa9OMajw9w/default.jpg)
![Demystifying Dependency Injection: Angular vs NestJS - Kamil Mysliwiec | NG-DE 2019](https://i.ytimg.com/vi/vYFhHVMetPg/default.jpg)
![Back Pressure, or, Don't Accept Work Before You're Ready [I]](https://i.ytimg.com/vi/Bz0EkaH4S7Y/default.jpg)
![](https://i.ytimg.com/vi/p7NAwSJbRrw/default.jpg)
![The Cost of Logging - Matteo Collina, nearForm](https://i.ytimg.com/vi/Dnx2SPdcDSU/default.jpg)
![Writing Secure Node Code: Understanding and Avoiding the Most Common Node.js Security Mistakes](https://i.ytimg.com/vi/QSMbk2nLTBk/default.jpg)
![VS Code: Optimize Your Node.js Development "Inner Loop"](https://i.ytimg.com/vi/TOBK7hFqCTI/default.jpg)
![TypeScript - A Love Tale with JavaScript](https://i.ytimg.com/vi/9YOHg3rt3W8/default.jpg)
![High Performance Apps with JavaScript and Rust, It's Easier Than You Think](https://i.ytimg.com/vi/Pfbw4YPrwf4/default.jpg)
![High Performance JS in V8](https://i.ytimg.com/vi/YqOhBezMx1o/default.jpg)
![Node's Event Loop From the Inside Out by Sam Roberts, IBM](https://i.ytimg.com/vi/P9csgxBgaZ8/default.jpg)
![Tech Talk: Server Scaling in Node.js](https://i.ytimg.com/vi/w1IzRF6AkuI/default.jpg)
![Add Node.js User Authentication in 10 Minutes!](https://i.ytimg.com/vi/QQwo4E_B0y8/default.jpg)
![Anirudh Sanjeev - Understand, find, prevent and fix memory leaks in JavaScript](https://i.ytimg.com/vi/CRoR_0K586I/default.jpg)
![Everything You Wanted to Know About Logging](https://i.ytimg.com/vi/pkh3J3u-jN4/default.jpg)
![Benchmarking GraphQL Node.js Servers](https://i.ytimg.com/vi/JbV7MCeEPb8/default.jpg)
![10 things I learned making the fastest JS server runtime in the world by Paulo Lopes | JSConf EU](https://i.ytimg.com/vi/-npTuvzflh4/default.jpg)