Introduction β
Welcome to the project π
This platform is built with:
- Laravel
- PHP-FPM
- High concurrency, production traffic
Our primary goal is production stability:
- No Out Of Memory (OOM)
- No long-running requests
- Predictable performance under load
Core Rule (Read This First) β
Web requests must be fast, bounded, and predictable.
- 120 seconds is a hard safety cap, not a design target
- Most web requests should finish in < 10β15 seconds
- If something cannot meet this, it must be moved to a queue job
π Onboarding Guide (Read in Order) β
Follow these pages in sequence to understand how the system works and how to write safe code:
π§ System Understanding β
- π Architecture
How requests flow, how PHP-FPM works, and why memory matters
β‘ Performance Expectations β
π Performance & SLA
What βgood performanceβ means for users and APIsπ Request Limits
Hard server-enforced limits (timeouts, memory caps)
π« Rules & Anti-Patterns β
- π Forbidden Patterns
Things that are strictly not allowed in production code
β Correct Design Patterns β
π Queues & Jobs
How and when to move heavy work to background jobsπ Database Rules
Safe querying patterns to avoid memory explosionsπ Uploads & Payloads
Handling large files and requests correctlyπ Caching & Cloudflare
Reducing PHP load using caching and edge behavior
π§― Real Incidents & Enforcement β
π Incident: OOM Case Study
A real production failure and what we learned from itπ Code Review Checklist
Mandatory checklist used to approve or reject PRs
Final Reminder β
If a feature cannot safely run within web request limits,
it does not belong in an HTTP request.
When in doubt:
- Ask before implementing heavy logic
- Prefer queues
- Prefer simplicity over cleverness
Welcome aboard β build fast, but keep production alive π
Campus On Click