Performans Optimizasyonu
Tips to make FeedbackPulse SaaS run faster as you scale.
Quick Wins
1. Cache Yapilandirma
php artisan config:cache # Cache .env and config files
php artisan route:cache # Cache routes
php artisan view:cache # Pre-compile Blade views
Run these after every deployment. Clear with
php artisan optimize:clear.
2. Use Redis for Cache & Sessions
Redis is significantly faster than file or database cache:
sudo apt install redis-server php8.2-redis
CACHE_STORE=redis
SESSION_DRIVER=redis
QUEUE_CONNECTION=redis
3. Use Veritabani Queue (Minimum)
QUEUE_CONNECTION=database
Run a queue worker via Supervisor to process jobs in the background instead of inline.
4. Enable OPcache
; /etc/php/8.2/fpm/conf.d/10-opcache.ini
opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0 ; Disable in production
Veritabani Optimization
Add Indexes
FeedbackPulse ships with appropriate indexes, but if you're running large queries, verify:
-- Check for slow queries
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL long_query_time = 2;
MySQL Tuning
innodb_buffer_pool_size = 1G # 50-70% of available RAM
innodb_log_file_size = 256M
max_connections = 200
innodb_flush_log_at_trx_commit = 2 # Slight durability trade-off for speed