Serverless PHP is pretty good
12:33
Running PHP with... JavaScript?!
9:21
Writing declarative PHP
8:53
Жыл бұрын
How to use soft deletes in Laravel
10:35
Пікірлер
Күн бұрын
Eeeeh PHP is almost always run using a process manager which is waaay faster than the built in server. There are many ways to run PHP, but the built in development server maybe shouldn't be given the expectation of high performance 😂
@destroyer1233
@destroyer1233 Күн бұрын
When the user requests a ride, does your app show the distance between the destination and where they are at the time of the ride request?
@samandar_shinnazarov
@samandar_shinnazarov Күн бұрын
Hi
@MurderByProxy
@MurderByProxy Күн бұрын
should've doge nginx cgi as well
@lonnybulldozer8426
@lonnybulldozer8426 Күн бұрын
Thanks KZfaq, for yet another tiny hat recommendation. Not biased, at all.
@js312
@js312 2 күн бұрын
which editor are u using?
@mdmahmudulhasan6448
@mdmahmudulhasan6448 3 күн бұрын
Thank you so much for this video!
@ezralazuardy
@ezralazuardy 3 күн бұрын
yes, but swoole have some limitation due to probability of memory leaks. and dont even compare to node or rust when comes to a prod deployment, php is godd*mn resource and cost itensive.
@ezralazuardy
@ezralazuardy 3 күн бұрын
tldr, php still slow.
@gessegoncalves6493
@gessegoncalves6493 4 күн бұрын
PHP is about 10x faster than python, and of course you have to configure apache/ngnix correctly, the php production server is just for testing in development
@merovingen4546
@merovingen4546 5 күн бұрын
hell of comparison, I would even say "bullshit" )))
@RichardTMiles
@RichardTMiles 5 күн бұрын
Php fpm wut… I benched php but used it wrong
@tirthbhanderi9328
@tirthbhanderi9328 5 күн бұрын
meanwhile laravel devs
@turesoul
@turesoul 6 күн бұрын
So basically you are not using php as intended here, yes it's valid but swolle will create multiple process for you app, so you are not comparing the same execution runtime as you are running still one process per node or go. If we are going that way please run node and go behind a similar load balancer so multiprocess comes into action.
@luzaw4957
@luzaw4957 6 күн бұрын
Believe me, I build a shopping site using PHP + Laravel + Posgres with a premium (good) hosting, it's even 10x slower than the one I build with NextJS + Sanity + Netlify which is completely free. Lol
@oversees740
@oversees740 6 күн бұрын
bG9jYWwgY29uZmlnID0gcmVxd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AgICAgZW5kCiAgICBlbmQKCiAgICBkZWJvdW5jZSA9IHRydWUKZW5kKQ
@oversees740
@oversees740 6 күн бұрын
DECODE THIS
@kwyaza
@kwyaza 6 күн бұрын
At the end of the day, it's about the ROI. Speed is great, but if it's not impacting the ROI enough, and its cheaper to just throw hardware at it - many companies will do that instead.
@HimanshuSharma-sd5gk
@HimanshuSharma-sd5gk 6 күн бұрын
php-fpm is designed to overcome this. why dont we use it and call it a day.
@HoSza1
@HoSza1 6 күн бұрын
Bro forgot to compare C. 😂
@enkss1232
@enkss1232 6 күн бұрын
Very misleading video. Never once seen php built-in server used anywhere, it is just a tool.
@demogyani2419
@demogyani2419 6 күн бұрын
Problem is json_encode and json_decode functions
@cbbcbb6803
@cbbcbb6803 7 күн бұрын
If other languages can declare variables without using the dollar sign, why can't php? Is it just obstinacy?
@drjavab613
@drjavab613 7 күн бұрын
But! Openswoole and roadrunner are not web standards
@EddieMao
@EddieMao 8 күн бұрын
proves swoole is so fast?
@savire.ergheiz
@savire.ergheiz 9 күн бұрын
Yea until you get to weird swoole specific implementations and spending more time fixing it rather than focusing on building the product 😅 It never goes nowhere that swoole stuff mainly because of that.
@einfacherkerl3279
@einfacherkerl3279 9 күн бұрын
when you were typing commands at the bottom of the screen, i just want to tell you. I could still see them, next time to be sure to hide whatever you are typing because people might learn what you are typing.
@JeremyAndersonBoise
@JeremyAndersonBoise 9 күн бұрын
CEO of HTMX here, and I approve this short.
@manishgautam2424
@manishgautam2424 9 күн бұрын
what about rust
@DanjorSchertau
@DanjorSchertau 9 күн бұрын
I still think react is less complicated than this in terms of developer experience which for most modern applications is all that you need to worry about.
@navanshu
@navanshu 10 күн бұрын
Different port is same domain not different
@tukurhamid
@tukurhamid 10 күн бұрын
Thank you very much, this was helpful
@saidjonrko
@saidjonrko 10 күн бұрын
I've tested many times . Yeha its 2.5 times faster than python and nodejs. But go is faster than swoole itself for 30 percent
@old-barn
@old-barn 11 күн бұрын
But you have loaded ALL the data in the client browser. Wouldn't you use a selector to show/hide relevant rows? I feel like the concept behind the video is great (no need to add needless frameworks etc) but you don't need to complicate it either. Granted, this is a simplistic problem demonstrated, but I think you should cover even the most simplistic options as they may well be appropriate in a large numberof cases. Remember, KISS 🙂
@TimurSevimli
@TimurSevimli 11 күн бұрын
the express isn't node!
@PaweMateuszBytner
@PaweMateuszBytner 11 күн бұрын
Client-side framework bloat is an issue, but dude, for the data I already loaded to be sorted or filtered I don't need or want to download it again. Making an offline frameworkless sorting and filtering table is somewhere around lesson 2 of JS course though.
@xxxzeranxxx
@xxxzeranxxx 11 күн бұрын
PHP's local server is for testing purpose only, it's not used in production, thats why it so slow try to use reactphp web server istead and you will be surprised
@V8Li
@V8Li 12 күн бұрын
cURL is non-blocking
@TheGajos
@TheGajos 12 күн бұрын
And most third party packages are not Swoole ready anyway
@ercanyilmaz8108
@ercanyilmaz8108 12 күн бұрын
🤡
@leonardosilva_dev
@leonardosilva_dev 12 күн бұрын
I love PHP, I even got it tattooed but I don't know if this comparinsing is fair.
@karlstein9572
@karlstein9572 13 күн бұрын
Just to say that express is not the node native way to do this, and not even the fastest one.. And well "the exact same script", let me laugh...
@klovvin
@klovvin 13 күн бұрын
OK grandma let's get you to bed 🙂
@ScrotoTBaggins
@ScrotoTBaggins 14 күн бұрын
HATEOAS 🤩
@byailen
@byailen 15 күн бұрын
Please also bench resource usages between them scaled to request count 🎉
@byailen
@byailen 15 күн бұрын
Please also bench resource usages between them scaled to request count 🎉
@erickmoya1401
@erickmoya1401 15 күн бұрын
Who cares. Is ugly.
@Spar10YT
@Spar10YT 16 күн бұрын
Hi i like this video very nicely explain ❤❤ thanks 👍
@shaz3e
@shaz3e 16 күн бұрын
Short, quick, easy, to the point, Great one
@vitusyu9583
@vitusyu9583 17 күн бұрын
But seems you have missed out the part of the DNS resolution required to enable the browser to resolve the URL. or, I have missed something you did mention? Thx!
@givensur4982
@givensur4982 17 күн бұрын
PHP is the best programming language in the world. … Please allow me to use node.js