PHP高性能http服务框架 or Golang or java

如何解决高并发的问题,一直以来高性能和生产力似乎总是相对立的。

一直以来PHP的性能总是被人诟病,以我过去的经验来讲PHP的开发应用的速度应该是java或者其他编译语言的2倍或则3倍。但是高并发似乎并不是其强项。

每次面试都会遇到如何解决高并发,大流量的问题,我就在想那你干毛用PHP去解决呢。java或者go不香吗?

那么PHP有没有解决高并发的方案呢?

答案肯定是有的。

有很多PHP C 扩展框架,例如yaf或者phalcon。 这些框架的确提升了PHP的并发或者性能问题,但同时确牺牲了生产力方面的问题。有人或者说yaf或者phaclcon没有生产力方面的问题,的确仁者见仁,智者见智。但是比起laravel真是差的不是一丁点,laravel的性能让人诟病。

还有PHP协程框架,例如swoole或者workerman。这的确是非常好的高性能PHP解决方案,这两个框架压力测试下的性能的确比golang 或者spring web 更快,但是我觉得那为什么不用golang或者java去解决这样的问题呢,何况这玩意只能CLI下面运行,而且性能差不了太多。

更重要的是java或者golang 我个人认为要比swoole或者workerman是更加成熟的解决方案。

当然PHP适合快速开Web应用,对于业务快速迭代的场景是有优势的。

随着业务不断的发展可以考虑硬件方面的扩展,个人认为可以解决业务规模初期或者中期的企业。业务不断壮大后个人认为采用Goalng或者Java会是更好的解决方案。


Donate

Buy me a coffee, if you thought this blog does help you. Click the link below.

My Personal PayPal.

74条评论

  1. If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  2. Very good post! We will be linking to this particularly great article on our website. Keep up the great writing. Amberly Tripp Erikson

  3. A big thank you for publishing such a valuable article on this topic. I hope to find here much more from you, in the coming weeks. Ivory Hubert Shreeves

  4. Good article! We are linking to this particularly great content on our website. Keep up the great writing. Philippine Cullie Amaryl

  5. Very good post! We will be linking to this great post on our website. Keep up the great writing. Josephina Marten Coreen

  6. Because the admin of this web page is working, no question very rapidly it will be well-known, due to its feature contents. Tomasine Lancelot Bellis

  7. Hi, constantly i used to check weblog posts here in the early hours in the break of day, because i love to gain knowledge of more and more. Jillene Ruddy Center

  8. Wow! In the end I got a website from where I be capable of in fact get valuable information concerning my study and knowledge. Julianne Juan Kellen

  9. Really appreciate you sharing this article post. Really looking forward to read more. Really Great. Glory Erhard Kipton

  10. It is not my first time to pay a quick visit this web site, i am visiting this website dailly and get pleasant data from here every day. Blinny Beale Poland

  11. Excellent way of describing, and good post to get information concerning my presentation focus, which i am going to present in university. Elvera Dwain Emalia

  12. Good way of describing, and nice article to obtain facts regarding my presentation subject matter, which i am going to convey in university. Carmon Munmro Hestia

  13. Please go to the websites we adhere to, including this a single, because it represents our picks from the web. Darbie Wake Barnum

  14. I’m extremely pleased to discover this website. I wanted to thank you for ones time just for this fantastic read!! I absolutely enjoyed every part of it and i also have you bookmarked to see new stuff in your site.

  15. Thanks for the suggestions you have shared here. Something else I would like to express is that laptop or computer memory specifications generally increase along with other advances in the engineering. For instance, if new generations of processor chips are brought to the market, there is certainly usually a similar increase in the size preferences of all computer system memory and hard drive space. This is because software program operated simply by these processor chips will inevitably increase in power to take advantage of the new technology.

  16. Some really great info, Gladiola I detected this. I’m not spaming. I’m just saying your website is AWSOME! Thank you so much! Please vist also my website.

  17. Really nice design and good subject material. Please also check my website. I love cars!

  18. Very nice post. I simply stumbled upon your weblog and wished to mention that I’ve truly enjoyed surfing around your blog posts.

  19. Thanks for your own work on this website. My mum takes pleasure in setting aside time for research and it is simple to grasp why. We notice all relating to the powerful way you provide very important tips and hints via your website and therefore strongly encourage response from visitors on this theme while our own simple princess is without a doubt understanding so much. Take pleasure in the rest of the year. Your performing a useful job.

  20. I happen to be writing to make you understand what a wonderful experience our princess went through visiting yuor web blog. She realized too many things, with the inclusion of what it is like to possess an incredible teaching style to make the rest without problems understand various very confusing topics. You undoubtedly surpassed visitors’ expected results. Thanks for supplying those warm and helpful, trustworthy, revealing not to mention unique tips on your topic to Tanya.

  21. Thanks for your own work on this website. My mum takes pleasure in setting aside time for research and it is simple to grasp why. We notice all relating to the powerful way you provide very important tips and hints via your website and therefore strongly encourage response from visitors on this theme while our own simple princess is without a doubt understanding so much. Take pleasure in the rest of the year. Your performing a useful job.

  22. I intended to compose you a bit of note in order to give many thanks again about the awesome basics you’ve contributed above. It’s generous of people like you giving easily all a few individuals could have advertised as an e-book in making some bucks for their own end, and in particular considering that you could have done it if you considered necessary. The basics additionally acted as a easy way to be aware that many people have a similar desire just as mine to figure out a good deal more around this condition. Certainly there are a lot more enjoyable instances ahead for folks who browse through your blog.

  23. Needed to send you this very little word to finally thank you so much the moment again relating to the striking thoughts you have shared on this site. This has been simply tremendously open-handed with you to present unreservedly what most people would have sold for an electronic book to help with making some profit on their own, primarily seeing that you might well have tried it in the event you wanted. Those techniques likewise worked to become a great way to recognize that someone else have the same passion similar to my very own to see somewhat more with regard to this problem. I know there are some more pleasurable situations up front for people who see your website.

  24. I am glad for writing to make you know what a magnificent encounter my wife’s girl had studying your web site. She mastered several pieces, which include what it’s like to possess an awesome helping nature to let other individuals very easily know precisely some multifaceted subject matter. You truly exceeded people’s expectations. Thank you for presenting these powerful, trusted, informative and in addition fun tips about this topic to Kate.

  25. My wife and i have been so peaceful when Michael managed to finish off his researching using the precious recommendations he obtained using your web site. It is now and again perplexing to simply happen to be making a gift of tactics which often some others may have been trying to sell. Therefore we recognize we need the writer to give thanks to for this. The type of illustrations you made, the straightforward web site navigation, the relationships you will make it easier to instill – it is most sensational, and it is letting our son in addition to us reckon that this subject matter is interesting, which is tremendously pressing. Thanks for the whole lot!

  26. I simply wished to thank you very much yet again. I do not know what I would have worked on without those tricks shown by you relating to this topic. This was the troublesome situation in my view, nevertheless witnessing your well-written way you treated the issue took me to weep with joy. Now i am thankful for your work as well as wish you recognize what an amazing job your are undertaking training the rest with the aid of your websites. Probably you haven’t met any of us.

  27. My husband and i felt absolutely ecstatic Edward could conclude his inquiry from your ideas he discovered from your very own site. It’s not at all simplistic just to be giving for free hints that men and women have been making money from. And we all do know we have the website owner to be grateful to because of that. Most of the explanations you’ve made, the easy site menu, the friendships you can assist to engender – it’s everything exceptional, and it’s assisting our son and our family do think that content is cool, and that is extremely important. Many thanks for all the pieces!

  28. My wife and i were very thankful when Raymond managed to round up his survey with the precious recommendations he was given while using the weblog. It is now and again perplexing to simply possibly be releasing tips and hints which usually the others might have been trying to sell. We really take into account we now have you to thank for this. Those illustrations you made, the straightforward website navigation, the relationships your site make it possible to promote – it is mostly unbelievable, and it is making our son in addition to us understand this topic is satisfying, which is certainly very vital. Thanks for the whole thing!

  29. I am just writing to make you understand what a perfect experience my wife’s princess obtained using your webblog. She noticed some things, which included what it is like to possess an excellent teaching spirit to make others with no trouble learn about specific specialized things. You undoubtedly surpassed readers’ expected results. Thanks for providing those priceless, trusted, informative as well as unique tips on your topic to Mary.

  30. I’m also commenting to let you be aware of of the brilliant discovery my child encountered checking the blog. She came to understand a lot of details, including how it is like to have a marvelous coaching character to get certain people completely comprehend a variety of complex issues. You actually did more than her desires. I appreciate you for coming up with such essential, dependable, edifying and cool guidance on that topic to Ethel.

  31. I am just writing to make you understand what a outstanding experience my wife’s girl obtained using your web site. She came to find a good number of details, including how it is like to have a great coaching character to get certain people clearly comprehend a number of advanced issues. You actually did more than her desires. I appreciate you for churning out such effective, dependable, edifying and cool guidance on that topic to Emily.

  32. There is noticeably a lot to realize about this. I think you made certain good points in features also. Ardelle Bryce Toddie

  33. I absolutely love your blog and find the majority of your post’s to be exactly I’m looking for.
    can you offer guest writers to write content for you
    personally? I wouldn’t mind creating a post or elaborating on many of
    the subjects you write with regards to here.

    Again, awesome site!

    my homepage: buy cbd gummies

  34. Great weblog here! Additionally your website a lot up very
    fast! What host are you the use of? Can I get your associate link for your host?

    I desire my web site loaded up as quickly as yours lol

    Here is my web blog: best CBD gummies

  35. Nice post. I learn something new and challenging on blogs
    I stumbleupon every day. It will always be useful to read through
    content from other writers and practice a little something from other websites.

    my web-site … cbd gummies

  36. Hi I am so happy I found your web site, I really found you by error, while I was looking on Bing for something else, Anyhow I am here
    now and would just like to say cheers for a marvelous post and a all round thrilling blog (I also love the theme/design), I
    don’t have time to browse it all at the minute but I have bookmarked it and also included your RSS feeds,
    so when I have time I will be back to read a great deal
    more, Please do keep up the superb b.

    my blog post … buy delta 8 thc near me

  37. I read this piece of writing completely about the resemblance of hottest and previous technologies, it’s amazing article.

    my web-site; best delta 8 thc

  38. Hello! I could have sworn I’ve visited this web site before but after looking at a few of the posts I realized it’s new to me.
    Anyhow, I’m certainly delighted I found it and I’ll be bookmarking it and checking back
    frequently!

    Here is my blog post … delta 8

  39. Great article! We will be linking to this particularly
    great article on our website. Keep up the good writing.

    Feel free to visit my blog – delta 8 thc for sale

  40. Hey there this is kind of of off topic but I was
    wanting to know if blogs use WYSIWYG editors or if you
    have to manually code with HTML. I’m starting
    a blog soon but have no coding know-how so I wanted to get guidance from someone with experience.
    Any help would be greatly appreciated!

    My web page buy delta 8 thc near me

  41. I want to to thank you for this good read!! I absolutely
    enjoyed every little bit of it. I have got you bookmarked to check out new stuff
    you post…

    My blog post buy delta 8 thc near me

  42. Hello to all, the contents existing at this website
    are in fact remarkable for people knowledge, well, keep up the nice
    work fellows.

    Feel free to visit my webpage :: buy delta 8 thc

  43. I do accept as true with all the concepts you’ve offered in your post.
    They’re really convincing and will certainly work.
    Nonetheless, the posts are very quick for novices. May you please lengthen them a little
    from subsequent time? Thanks for the post.

    Also visit my web blog: delta 8 thc for sale

  44. Hi there to every , for the reason that I am genuinely eager of reading this blog’s post to be updated regularly.
    It contains good stuff.

    My web blog – delta-8-THC

  45. This is a topic that’s close to my heart… Take care!
    Where are your contact details though?

    Also visit my site delta 8 thc

  46. I do believe all of the ideas you have offered in your
    post. They are really convincing and can certainly work.
    Still, the posts are very brief for newbies. Could you please extend them a bit from subsequent time?
    Thank you for the post.

    Feel free to surf to my blog :: CBD gummies for sleep

  47. you’re truly a excellent webmaster. The website loading velocity is incredible.

    It kind of feels that you are doing any unique trick.
    Furthermore, The contents are masterpiece. you have done a wonderful activity on this matter!

    Also visit my site – delta 8 thc near me

  48. Hello, I think your site might be having browser compatibility
    issues. When I look at your website in Safari, it
    looks fine but when opening in Internet Explorer, it
    has some overlapping. I just wanted to give you a quick heads up!
    Other then that, very good blog!

    My homepage :: delta 8

  49. I’m truly enjoying the design and layout of your blog. It’s
    a very easy on the eyes which makes it much more enjoyable for me to come here
    and visit more often. Did you hire out a designer to create your theme?

    Outstanding work!

    My blog post … buy cbd gummies

  50. This is a great tip particularly to those fresh to the blogosphere.
    Short but very accurate information… Thank you for sharing this one.
    A must read article!

    Also visit my website – delta 8 thc

  51. It’s perfect time to make some plans for the longer term and it is time to be happy.
    I’ve learn this publish and if I may just
    I want to suggest you few attention-grabbing issues or advice.

    Perhaps you can write subsequent articles regarding this
    article. I desire to learn more things approximately it!

    Review my site … where to buy delta 8

  52. Hello to all, the contents existing at this website are actually awesome for people knowledge,
    well, keep up the good work fellows.

    Visit my blog post; best CBD gummies

  53. This is very interesting, You’re a very skilled blogger.

    I have joined your feed and look forward to seeking more of your
    great post. Also, I’ve shared your website in my social networks!

    Here is my blog post; buy cbd

  54. This is the right website for anybody who wishes to
    find out about this topic. You know a whole lot its almost tough to argue with you (not that I personally will need to…HaHa).
    You definitely put a brand new spin on a topic that has been discussed for years.
    Excellent stuff, just wonderful!

发表评论

邮箱地址不会被公开。 必填项已用*标注