Poisonal
Pass it along a thing worth keeping

MTA Announces New 'Monitor Point' Towers as 'Enhanced Park Experience' for Greenpoint

60-story luxury condos to provide 'shade and ambiance' where 27-acre waterfront park was promised 20 years ago.

10 months ago • 8 min read
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Modernize Legacy PHP Codebases Without Breaking Production

Modernize Legacy PHP Codebases Without Breaking Production

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Process

What Happens Inside a Single PHP Request

01
📨
Request Arrives
An HTTP request hits the server. The web server (nginx, Apache) receives it and routes to the PHP interpreter. ~1ms
02
⚙️
PHP Interpreter Boots
The PHP process spins up from scratch. Memory is allocated, the runtime initializes, the Zend engine prepares. This happens every single request. ~3-5ms
03
🔧
Framework Bootstraps
Autoloaders scan the codebase, configuration files load, the dependency injection container builds itself, middleware stacks assemble. The framework wakes up. ~8-12ms
04
🗺️
Route Resolution
The request path matches against registered routes. The router determines which controller handles the request and what parameters to pass. ~1-2ms
05
▶️
Controller Executes
Business logic runs: validation, transformation, orchestration. The controller speaks to services, repositories, and domain logic. This is where your code actually does work. ~5-20ms
06
🗄️
Database Query Runs
If needed, the request blocks waiting for I/O. A query executes, rows return (or don't). Network latency and query time dominate here. ~10-100ms
07
📦
Response Serializes
Data converts to JSON, XML, or HTML. Headers construct. The response body assembles. HTTP semantics encode the result. ~2-5ms
08
🧹
Memory Freed & Process Ends
The response sends to the client. PHP tears down: variables deallocate, connections close, the process exits. The interpreter is gone. Next request gets a fresh one. ~1ms
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Bootstrap Overhead

Bootstrap Overhead

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Comparison

Where Your CPU Actually Goes

Bootstrap CostBusiness LogicTotal Per RequestScale Impact (100 RPS × 1hr)
Single Stateless Request15ms (process spawn, autoloader, framework init)35ms (query, compute, render)50ms54,000,000ms = 15 CPU-hours on bootstrap alone
100 RPS Over One Hour (Stateless)15ms × 360,000 requests = 5,400,000ms35ms × 360,000 requests = 12,600,000ms50ms average18,000,000ms total = 18 CPU-hours spent. 30% is pure overhead ritual.
100 RPS Over One Hour (Persistent Process)15ms paid once at startup35ms × 360,000 requests = 12,600,000ms35ms average12,600,015ms total = 12.6 CPU-hours. Bootstrap overhead becomes invisible. You reclaim 30% of your compute budget per request. That's 5.4 CPU-hours freed. Scale to 1,000 RPS and you've just bought yourself a whole server's worth of capacity back.
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Languages That Remember

Languages That Remember

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Legacy Banking Systems Architect

Legacy Banking Systems Architect

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Android Framework Engineer

Android Framework Engineer

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

NCERT Strategy + Best Books + Resources (Must Watch) - YouTube

NCERT Strategy + Best Books + Resources (Must Watch) - YouTube

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

How to study Geography for UPSC: Resources, books, PYQs, High ...

How to study Geography for UPSC: Resources, books, PYQs, High ...

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

whether the red book is actually enough

whether the red book is actually enough

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

why she refuses to read anything else

why she refuses to read anything else

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

UPSC Candidate Maintains 1,200-Page Textbook Can Be Memorized Entirely

UPSC Candidate Maintains 1,200-Page Textbook Can Be Memorized Entirely

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

The constitution, unmade

The constitution, unmade

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Exam Committee Confirms Latest Constitutional Amendment Not Yet in Current Edition

Exam Committee Confirms Latest Constitutional Amendment Not Yet in Current Edition

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Former UPSC Rank 1 Candidate

Former UPSC Rank 1 Candidate

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Most Aspirants Cannot Identify the Attorney General When Pressed on Fundamental Rights

Most Aspirants Cannot Identify the Attorney General When Pressed on Fundamental Rights

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

The Moon And The Tide

The Moon And The Tide

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Poisonal

Predicting the beach landing

score0
streak0
lives
↑ not sure? let it fly by
▶ ·

Predicting the beach landing

Real cognitive biases float up the screen — mixed with fakes I invented. Same look. Only one of each pair is real.

Tap a word to fire. Shoot a fake and you've been fooled — three of those and you're out. Let a real one slip past and it only costs points. Clear the whole set.

Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Ecosystems Linked To Ancient Crabs

Ecosystems Linked To Ancient Crabs

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Al-Aqsa Trustees Warn Israeli Excavations Seek to Erase Jerusalem's Identity While Preserving It Exactly As It Is

Al-Aqsa Trustees Warn Israeli Excavations Seek to Erase Jerusalem's Identity While Preserving It Exactly As It Is

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Tens of Thousands Attend Friday Prayer at Aqsa Mosque Despite Israeli Restrictions That Appear to Have Worked Exactly As Intended

Tens of Thousands Attend Friday Prayer at Aqsa Mosque Despite Israeli Restrictions That Appear to Have Worked Exactly As Intended

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Prospects for Palestinian Statehood Said to Be Disappearing, According to Former World Leaders Who Have No Power to Stop It

Prospects for Palestinian Statehood Said to Be Disappearing, According to Former World Leaders Who Have No Power to Stop It

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Naples Heat Emergency Depletes Worker Compensation Fund at Record Rate

Naples Heat Emergency Depletes Worker Compensation Fund at Record Rate

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Romeo Napoli Hotel Markets 'Authentic Chaos' as Amenity for €180-Per-Night Suite

Romeo Napoli Hotel Markets 'Authentic Chaos' as Amenity for €180-Per-Night Suite

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Fitch Affirms Naples Municipal Credit Rating as City Simultaneously Floats Underwater Museum Project

Fitch Affirms Naples Municipal Credit Rating as City Simultaneously Floats Underwater Museum Project

Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
⚡
Speed Reading
Press Tab
🔇
Read Aloud
Press A

Naples Tourism Board Confirms Best Food Remains Physically Inaccessible to Most Tourists

Naples Tourism Board Confirms Best Food Remains Physically Inaccessible to Most Tourists

Reading...
SPEED READING
Complete!
1 / 0
500 WPM

More from Greenpoint