Hey guys, having on a daily bases to deal with companies that are using popular but super slow frameworks makes me want to brag about Yii2 performance!
My latest project is Contentized. At the moment it’s hosted on AWS on 2 micro instances (1 instance per zone).
Here’s a screenshot from newrelic of a small time window.
6742
Some key points of how I got there.
-
PHP 5.6 (using OpCache)
-
Yii2 RESTful (built my own RESTful abstraction instead of just using the default as it was not convenient for my project)
-
DB Schema cached in APCU - after I deploy I restart fpm which by default will also clear APCU (sweet)
-
User authentication cached in memcache (so that they are not lost when I deploy) - authentication is verified 1st on memcache and if that fails then it will query the auth service
-
Micro Services Architecture (keeps everything extremely clean and 100% decoupled - not to mention reusability across projects)
-
Nginx (of course)
-
AWS 2 micro instances (on 2 different zones) - think high availability
-
RDS small instance (multizone) - think high availability
Please reply with similar images or statistics bragging about the awesomeness!
Looking forward to checking them out!