Is PHP on Laravel really that bad for high traffic [closed] - php

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I originally asked a biased question about which MVC framework is best suited for high traffic.
The answer to this question is that most frameworks can are designed handle such traffic. Choose the best MVC framework you are comfortable with.

Donald Ervin Knuth:
Premature optimization is the root of all evil (or at least most of
it) in programming.
Most of the tools we're using (including frameworks in general and Laravel in particular) are designed to speed up development process and then ease developers workflow.
The general rule here I'd say is build it first. By the moment your project becomes so big (read successful) that Laravel on PHP7 fails to deliver you certainly will be able to hire someone to tackle that problem.
Therefoe Laravel is a decent choice for a new project, like any other framework.
Ideally write your application logic in a framework-agnostic manner, i.e. keep Laravel out of your business logic - that requires some experience, but in the end you would even be able to switch frameworks.

Related

HHVM in a production environment [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
We are building a new PHP project, and we heard of the new HHVM, we wanted to deploy our application on it, but we are not sure if it is ready for production environments or not?
We have a laravel 4 application with MySQL and MongoDB as the databases.
Our application is concerned alot about performance and speed of requests because it is a financial application.
Is HHVM production ready ? if it is not and we should wait, how easy will it be to migrate to it after we are live when it becomes production ready, will it break our code? and most of all will PHP be on HHVM for a good while after hack is in town ? is there any live examples of it (other than FB)?, We really like HHVMs performance, but we can't risk the whole project goin down after production.
I do not risk moving my current project to it yet, but I plan to enable CI-tests using HHVM (parallel to usual PHP-5.5 tests) really soon. This way I will know when the project is compatible and plan transition
My opinion:
I simply don't trust such a new one (Hack) and can't risk until it's become available or accepted by the community. It's not sure whether it'll gain trust or not. You are going to reduce the support for your project if you need any during the development, not enough resources and fellow developers, AFAIK.
I think, It's risky and you should think again about it. An article about Hack.

Is ruby Slower than Php in performance benchmarking [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am hearing by lots of programmer that Ruby lacks in performance with comparison to php.
So i try to find out the real picture behind that i saw this post Why do people say that Ruby is slow? .
There are many articles I found but most of them are too old to be considered for me in current scenario as ruby 2.1 already revealed. As a Ruby on rails developer I loved it. But want to know is this true and if yes how can we overcome this bottleneck in ruby .
So please put your thoughts on that
I think how you design your code and what software architecture you use has a larger impact on your performance than the underlying language. In my opinion programmers and software architects make software fast or slow. Ruby and PHP are both interpreted languages which can make code slower than compiled code because a compiler does certain optimizations.
But for both PHP and Ruby there exist bytcode caches and compilers.

Should I learn pure PHP before the Django framework? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I've been coding with django for a few months now, and I have made good progress. But, I feel like I don't understand what's happening under the hood well enough to make the leap from beginner to advanced. For example, it's easy to manipulate the database via ORM in Django without having any knowledge of SQL. As another example, user authentication in Django almost only requires me to import a module and writing a couple of lines of code. I don't have to have any knowledge on sessions, database queries etc.
As I have done no prior web programming except Django, I was wondering if it would make sense to move to PHP (without a framework) and when I've learned the fundamental concepts of web development (cookies, sessions, SQL etc) return to Django development?
No, that wouldn't make any sense at all.
PHP is just one language for writing websites. It works in a certain way, but many of the things that you often see in PHP are not generally considered best practice. It's very unlikely to help you write a decent Python web app.
If you really want to learn how everything works, you could just as easily write a Python app using raw WSGI, or a micro-framework like Flask.

Dependence or independence to php frameworks [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm studying php programming and I'm pretty convinced I know base rules that permit me to move on pretty building good web application.It could be weird but from the beginning I started to build web application using frameworks.I know how php works (session,cookies,ecc...) but if you say me to create a web application without a framework I could have some problems because I don't have a mind schema to follow instead with framework I'm fell more comfortable because I follow simple pattern like MVC and I have everything clear in my mind. what I'm asking now is this situation is really convenient for a web programmer? I web programmer especially in the last times, have to be independent or dependent from frameworks?
It is perfectly possible to build a PHP application without any framework, but it is more time consuming.
If you want perfect control over every part of your code, don't use a framework. This option also lets you optimize your code fully.
However, using an existing framework may well be easier and less time consuming, in some cases at the expense of performance. I would say that the performance loss is negligible in most cases, but it really depends on the application.

asp.net mvc vs php mvc vs just php for cafepress type site [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I dont have experience in web programming. I so far I coded in c++ only. If I wanted to build a site similar in functionality to cafepress.com which route would be most suitable for me?
asp.net mvc or php mvc or just php?
Granted I am new at this, still the amount of options is overwhelming to a newbie. And there is no decent guideline as to pick which is more suitable for what kind of projects?
Since I am new at this, I have to learn one of these things. But I don't want to waste my time only to see these things go out of fashion. So, I am looking for these qualities :
must not go out of fashion in a few years. By this I mean, something that is hyped just because its new and has not found a universal acceptance yet
simple, easy to learn and don't over complicate
do not abstract how web works (asp.net webforms....ahem)
can be done by a small group 2-3 guys
I would suggest you to go for Cakephp or codeigniter which are damn good for making large and maintainable sites. PHP is open-source, cross-platform, has good community support to php and above mentioned frameworks, something not there in asp.net. Also in asp.net security holes are found regularly.
I like ASP.Net MVC so i would recommend that because C# is awesome and Visual Studio is the best IDE. But you should look at the languages and tools and figure out what suites you.

Categories