by ericbarnes on 4/14/15, 2:53 PM with 110 comments
by j42 on 4/14/15, 6:42 PM
Laravel is one of my favorite frameworks, especially since 5.0 given its noble attempt to adhere to contract-first/interfaced development and many best practices that in some ways prevent the "worst" kinds of code from being written. It's not static typing, but it's a step in the right direction.
This seems like it's heavily optimized over the Laravel base, and if high speed and concurrency is important enough that you'd choose Lumen, then it seems like you'd still be stopping halfway in a bit of a "if you have a hammer everything seems like a nail" situation. Unless I'm missing something Lumen still requires resources to be bootstrapped on request, and ultimately that (in the context of a framework) will lead to memory leaks in a loosely-typed language; no way around that.
Also because disk writes will quickly become the bottleneck before your network capacity does, the two most relevant performance enhancements are to use a non-blocking event-loop (with expensive writes deferred to a tick cycle) and to completely avoid any unnecessary per-request bootstrapping--best done with raw PHP and ideally kept simple. This, combined with an optimized TCP configuration and split-per-process nginx LB at the head will give me r/s 10-50x the purported benchmarks. As much as 1000x when introducing intelligent edge-caching rules.
Is there a situation where this would be the right tool for the job/more ideal than the base framework but not worthy of a "roll-your-own" solution?
Either way +1 for Taylor Otwell as a developer and the general quality of his code/releases--Laravel is an ambitious project, and as a developer quite enjoyable to work with!
by dustinlakin on 4/14/15, 6:37 PM
by hising on 4/14/15, 3:38 PM
by bhauer on 4/14/15, 7:01 PM
Incidentally, Round 10 is arriving soon.
[1] https://github.com/TechEmpower/FrameworkBenchmarks/issues/15...
by seandavidfisher on 4/14/15, 4:19 PM
by wesray on 4/14/15, 3:33 PM
by quaffapint on 4/14/15, 8:38 PM
by fideloper on 4/14/15, 2:56 PM
by Beatus on 4/14/15, 9:00 PM
Am I doing something wrong or why does it call itself a "micro-framework". A newly created Slim project contains 7417 lines of code.
by debaserab2 on 4/14/15, 4:12 PM
by sergiotapia on 4/14/15, 4:34 PM
Has the experience remained the same? PHP was incredibly simple to deploy.
by JimmaDaRustla on 4/14/15, 5:50 PM
Slim 3 will also be PSR-7 compliant, I don't see anything about that anywhere in these Lumen docs.
by 0x0 on 4/14/15, 4:09 PM
by pearjuice on 4/14/15, 4:23 PM
by EGreg on 4/14/15, 8:31 PM
I think many frameworks allow you to include the "basic" subset of the framework, without running all the usual Inversion of Control bootstrapping.
by evoratec on 4/17/15, 4:32 AM
by ing33k on 4/14/15, 5:01 PM
by adaml_623 on 4/14/15, 9:29 PM
by crazychrome on 4/14/15, 5:34 PM
by pankajdoharey on 4/14/15, 6:24 PM