Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter vs Laravel - speed and memory
#5

@athosss
Just my five cents from hosting a SaaS system with ~1 million requests/day written in CodeIgniter 4.1.9 and running PHP 8.1. Running as Dockers in AWS ECS. 

We considered Laravel because of a massive rewrite needed moving from CodeIgniter 3.1.x. After testing some code we saw slowdown in Laravel with PHP 8 (we did not use fpm). Also the application model was not suitable for us because we have no page rendering in the backend but instead a PWA front-end using AJAX-calls, Laravel has many great templating libraries we didn't need. 
The size of Laravel framework, reliance on CLI tools, confusing class naming and crazy amount of packages was another complexity we didn't have time to handle. 
We ended up re-writing all code from 3.1.x to 4.1.x

* You should spend your time optimizing OPCache - once the files are in there speed improves
* Cache all data you can! We are using REDIS to store non-volatile to avoid hitting the database
* Design with Load-Balancers in mind from first line of code. Treat the instances running your code as read-only and make sure they can scale horizontally

Wishing you all the luck with your project!
/Mattias
Reply


Messages In This Thread
RE: CodeIgniter vs Laravel - speed and memory - by tgix - 06-21-2022, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB