Repositori ini berisi template konfigurasi siap pakai (Production Ready) untuk mengoptimalkan performa dan skalabilitas framework CodeIgniter 4 pada server Linux (Ubuntu/Debian/RHEL) berbasis PHP 8+, Nginx, OPcache, dan Redis In-Memory Session.
| Teknik Optimasi | Sebelum | Sesudah | Peningkatan (%) |
|---|---|---|---|
| PHP 8 OPcache | 120 ms | 18 ms | +85.0% Lebih Cepat |
| Web Page Caching | 150 ms | 4 ms | +97.3% Lebih Cepat |
| Redis Session Storage | 35 ms | 0.8 ms | +97.7% Lebih Cepat |
| Database Column Selection | 380 ms | 12 ms | +96.8% Lebih Cepat |
| Web Server Nginx + PHP-FPM | 450 req/s | 2.100 req/s | +366.7% Throughput |
config/php.iniβ Konfigurasi PHP 8 OPcache & JIT Compiler untuk lingkungan produksi.config/nginx-ci4.confβ Blok server Nginx optimized dengan FastCGI PHP-FPM unix socket & Gzip compression.config/App.phpβ Setup CodeIgniter 4 Session Handler menggunakan Redis In-Memory Storage.config/Filters.phpβ Penonaktifan Debug Toolbar & Profiler untuk RESTful API dan High-Concurrency Traffic.
Gunakan alat penguji beban terminal berikut untuk mengukur responsivitas server Anda:
# Uji konkurensi 1.000 total request (100 koneksi simultan) via Apache Benchmark
ab -n 1000 -c 100 https://domain-anda.com/
# Uji stress test throughput 30 detik via wrk
wrk -t12 -c400 -d30s https://domain-anda.com/Disusun dan dipublikasikan secara independen oleh Rusmawan Abdullah Sani bersama tim engineer infokoding.com. Bebas digunakan dan dimodifikasi untuk proyek komersial maupun open-source (MIT License).