A bounded event pipeline for a macOS app
Bounded event buffers and logging after a recorded macOS incident
with 41 MB per second growth and 111 GB of compressed pages on a 36
GB machine; a recorded full test run reduced core log lines from
610,996 to 1,411.
September 2026

Situation. On 2026‑09‑01, diagnostic reports recorded 111 GB of
compressed pages for the macOS app on a 36 GB machine. A separate
footprint sample recorded growth of about 41 MB per second while a
connection retry loop emitted core events.

Task. The event path needed explicit memory bounds. A burst of core
log events was retained in an unbounded main stream and copied to
seven subscriber streams whose consumers did not use those log
events.

Action. Buffers were bounded, subscriptions filtered by event type
and logging given a rate budget. Overflow handling makes the trade
explicit: repetitive diagnostic events may be dropped, and affected
state can be refreshed rather than retaining unlimited events.
Architecture checks and application‑budget tests defend the bounded
design.

Result. The incident record documents a full test‑run comparison:
core log lines fell from 610,996 to 1,411, and captured log size
from 63 MB to 388 KB. These are recorded test‑run measurements, not
a production traffic benchmark or a measured post‑fix memory figure.
The logging change alone did not fix separate shutdown timeouts;
those required their own correction.

Categories:
1Solution Architecture	/categories/solution-architecture/	software.engineer.company	70
1Frontend Engineering	/categories/frontend/	software.engineer.company	70
1Reliability & Backups	/categories/reliability/	software.engineer.company	70
1Monitoring & Observability	/categories/observability/	software.engineer.company	70
1Performance Tuning	/categories/performance/	software.engineer.company	70
1Testing & QA	/categories/testing/	software.engineer.company	70

Services:
1Platform & Solution Architecture	/services/platform-architecture/	software.engineer.company	70
1Frontend Development	/services/frontend-development/	software.engineer.company	70
1Site Reliability & Monitoring	/services/site-reliability/	software.engineer.company	70

hThis page on the web	URL:https://software.engineer.company/portfolio/an-app-that-ate-41-mb-a-second-stopped/	software.engineer.company	70
