What is REALLY the Fastest Web Framework?
HTML-код
- Опубликовано: 17 фев 2022
- 🚀 If you're learning to code, check out my website 👉 codehawke.com/all_access.html 🔥
📣 Other Social:
/ realchrishawkes
/ christopher-hawkes-130...
github.com/chawk
stackoverflow.com/users/83627...
🔥 If you're learning to code, check out my website 👉 codehawke.com/all_access.html 🔥
Learn more 👉 ruclips.net/video/fpp215OSRV0/видео.html
At some point, a framework is just matured enough to not need many updates. So a lack of changes on a framework doesn’t necessarily mean it’s dead.
I'm hoping. The creator of nest has been complaining about a lack of donations for a while now though. Which is understandable, he worked his ass off on it. The donations are a fraction of what he can make elsewhere.
@@realchrishawkes I hear you. We use a frontend state management library called cerebral js, and the maintainer just said he is no longer maintaining the library, so we either need to fork it and maintain our own copy, or try to find a way to get our company responsible for maintaining it. OSS is a thankless job
@@realchrishawkes I really hope he keeps up the good work! I think it's the most complete framework in the JS eco system which is nice. As close as the JS world will get to Rails or Laravel.
@@2penry2
What about adonis Js
I think it is the closest to rails and Laravel than nest Js
@@anoh2689 Adonis I think has missed the typescript train.
At the same load, you will need 2 EC2 instances Nodejs instead of 10 Django (just as an example) so it is cost-effective to choose a fast framework
Damn, man you never fail with the value you bring. I was reading a post somewhere on "Elixir vs Golang performance," and people in the comments were having a healthy conversation. A lot of them were in agreement with the runtime of a program not mattering as much compared to other things such as an active ecosystem, being able to quickly develop features, and being easy to use for those being introduced to it. I like how you talk about the stuff many of us would usually just search online for to find for ourselves.
I couldn't agree more. I use mostly use Gin. Go is "not as fast as Rust", "not as cool as Elixir", "not as Enterprisey as Java", but I really don't care. I'm comfortable with it. Of course, in an ideal world, I would only write code in LISP, but bills gotta be paid as well.
indeed bills gotta be paid
I surprised you didn't talk about aspnetcore which outperforms spring, Django and Node!
I hope I don't have to talk about tooling of C#, you already aware of it! 😉
The power of NestJS is that it's a perfect match with Angular as the architectural approach is the same. The combo Angular-NestJS is also officially supported in the NX workspace. With NX it is possible to generate a full stack framework with the same structure. The paradox is that I think this is good for small/medium teams as they have just one paradigm to follow and one language (Typescript of course). What's your opinion about that? Cheers mate
I have no regrets choosing it for www.codehawke.com. Powers thousands of users and hundreds of streaming videos.
About nest... the best thing, like as opposed to using something like adonis, is that it by itself, does "nothing". It's but a wrapper framework where you can change all the parts to whatever fits your needs.
Anyway... most companies would need traffic in the millions to have to start caring about a "fast" web framework, for most, literally any one of those is enough.
The "real" answer here is aspnet core. It is the fastest out of all "mainstream" frameworks. Sure, there are faster ones but nobody uses them and are literally made to be fast, not to be good.
Oh man my current job uses a third party web app built in aspnet and it’s horrendous. I know performance is based on how well you write the code but based on my experience I wouldn’t even try aspnet.
@@keatonhatch6213 i did a lot of aspnet in my classes, because it's pretty simple and yeah, it's fast if you don't send a lot of requests / if you don't have too many users at once. Comparing to like Phoenix and React, it's slower indeed. Maybe more secure tho? Not sure
personally i find django so easy to work with! love it
Yeah, a little steep to learn initially, but it does everything you need with similar patterns for the most part.
Hi Chris.Thanks for your video. In row 20 I see "php-ngx-pgsql" with 362,947 responses per second. Can you explain what kind of php that is? with this awesome speed. It is higher than go fiber in row 23.
I think that is the framework stack, php-nginx-postgress, not sure. but It makes sense to me.
Good point. The website(s) I want to emulate all use frameworks that are not even in the top ten Web Frameworks in that list. I think it really comes down to priorities in some cases, for some it's speed while other it's getting something up and running to test in something that widely understood, so if something takes off then you don't have to worry about finding a very specific and specialized where as simply hiring more devs that all ready know most of the framework you use anyway.
I found with WordPress your server plays a big part in it.
Loading the entire DB, site and caching solutions into RAM has a massive improvement on speed and latency.
Then optimizing the site with the latest file formats and HTTP/2 Server Push made an incredible difference on the client side.
Exactly. These are the types of things every framework needs based on the use case.
I Still get PTSD about how WordPress is recommended. Shit out of the box is doing O(2^n) DB queries. Before any customisation and people are still like. "other developers are trash. just install jetpack bro". Shit is trash, you cannot support anything serious beyond Blogging / Static Marketing sites without giving yourself an early stroke,
The only upside to WP is decent SEO right off the bat but otherwise I think in this instance the speed and security would be a bad compromise. With that said, I used it to test a MVP .
I feel Drogon is going to get a bit popular after this video. Haha
good video chris, what is your technology stack idea for a streaming app?
Node
@@realchrishawkes thank you chris, actually gonna build a streaming app like twitch tv with node and socket io, any tips or documentation?
I think one argument for going for literally the fastest is if you've had a project that has existed for a long time. Some aspects of it are very set and simple and can be described in very generic terms. You need to refactor things to scale anyway, so since you are doing some rewrite you might as well target the thing that's going to perform best. And then knowing this thing that performs best (having migrated to it before) means that if you ever end up in the same situation again you have experience with this fast technology.
Human productivity > performance in 95% of cases, but if you're spending years in an industry you will hit that 5%. And if the problem is simple and scale is big then the loss in human productivity is small. Not having to worry about it again and not having to re-optimize cost again is its own time saving that one runs into later in dev cycle.
That's why I care about fast right now.
Chris do you think McGregor will fight again in 2022 after his devastating leg injury last year? Cheers.
Honestly, I don't enjoy watching it. Nothing against it, just sort of brutal. I prefer street fighting lol 😆
Which benchmark takes speed to market into account? In the current year that's priority over muh request throughput
.net core, spring, node, django, rails, laravel, flask and static html from any server where needed.
Simple. The fast ones are hard to use. Ultimately speed is coming from going down the level. And let's be honest web developers are not well known for their coding skill and knowledge of low level computing languages so it's always those slow but easy to use ones get popular.
All I care about is if it’s easy to work with…..Node and Python are a nightmare because the dependency management is hell and just gets worse as the project gets bigger….I’ll stick with Java Spring Boot
Some people despise Java.
you forgetting one more thing - multithreading is a bottle neck too
for example: PHP-fpm have awful conception, it's creating process (not just a thread) for every conn
What you think about Vue tho
Hey Chris does the current events in the world stops you moving on with your daily goals for example like that one dream you want to achieve in the future, like what if there is ww3? What if we go back to the old ages like what is the point of breaking into tech industry because there could be war or something like that.
Can you make a video out of this please?
I don't let it stop me and don't plan around it. If WW3 breaks out, it's game over for pretty much everything. Hoping cooler heads prevail. WW1 was started fairly easily. Things are not good for sure. I feel bad for those who will most definitely be affected. The world can be a shit place sometimes. Humans are just doing what they do.
@@realchrishawkes thank you for your quick response.
@@realchrishawkes you would make pretty damn good soldier also pentagon is not far away from you plus you have husky look.
make a framework with identical code on client and server and native to web all elements in dom without any stupid js
that probably would mean creating separate browsers or browser cores for each framework
How do you decide which tool is right for the job? Since performance is for noobs, as you say, lol.
I tend to believe you since I don't have much experience in the business.
the point is not between drogon any other really niche ultra fast minimal framework, the point is for example between nest js, netcode , or between fastapi and django.
I'm gonna check out some of the C based frameworks. I mean it sounds cool, I love C.
Good luck!
So which one
Great!👍🏽
The fastest framework rarely ever should be your first framework or your go-to framework. The typical framework I use would be Node-Express or Python Fast API. And those serves the majority of the use cases out there. However, I've ran into use cases where I need to handle massive concurrency and that's when I explore frameworks like Drogon or Actix.
Blazor WASM takes soooooo long to load. Blazor Server is pretty neat though.
Does it still have to download a bunch of .dll's to run?
@@realchrishawkes Correct.
@@LukeAvedon I remember them talking about treeshaking to bring down total payload size but I don't think its high on priority since its been two years lol
@@inferzard LOL doesn't seem like it. Blazor Server with SignalR pretty much fixes the problem.
I think there some work around with pre-rendering
All I care about is what I understand the best and what works
It's almost overwhelming how many options there are.
Just sent the stuff to the user side and let their app do the work. I kid.
just pick one technology stack and stick to it, this is currently the best option
Pretty much
Full HTML all the way down!
Bruh does anyone really care about the code speed in web dev? shit is always limited by I/O or DB?
Noob's do.
@@realchrishawkes Big up Nest. Was a bit of a learning stretch to get running with it's internal module system. But once you understand it you start to appreciate what it brings to the table.
@@2penry2 agreed, it saved me a ton of time. Great docs too.
But, really, if you build it correctly and put everything in memory with an actor based system. Perf isn't even a big deal deal anymore.
But at the corporation I work at. The perf issue is in the database and in the code too. But mainly issues from making a ton of API calls, etc.
@@dovh49 That's a good point. At really high scale I guess reducing CPU time through a faster language starts to make sense. But yeah it's almost always DB for latency if your not FAANG
Django is ♥️
Man up and learn what malloc is 😄
Trick question. Theyre all 1000x slower than C/C++
frameworks written in code near machine code are are the fastest like c++
Well, you made an entire video looking at the wrong tab of the results. You need to look at the composite scores tab not the fortunes tab.
i don't want fast i want full freedom like c
Django is the best
For some reasons it keeps deleting my comment. No probs. Have a good day!
Lol “talent”