This list has moved to avlgo.com/playlist: the week's shows, one song per band, and the Spotify playlist.
A Laravel Artisan command built for the Curitics Care-Management app to stress-test it at production scale and beyond. Generates N new patient records plus proportional related data (medication refills, conditions, care gaps, notes, tasks, plans) so performance benchmarks exercise the queries that actually get slow in prod.
Command lives at: app/Console/Commands/Performance/VolumeSeedCommand.php
Production had ~500K patients when this work started. The goal was to find out what happens at 1M, 3M, and beyond — before prod got there.
The previous version of this gist claimed php artisan optimize should be moved from build to deploy because cached views/routes contain wrong file paths. That's incorrect. Cached Blade views only contain path references in PHP comments (/**PATH ... ENDPATH**/), not in executable code. Laravel resolves paths dynamically at runtime.
Moving optimize to deploy actually breaks the deploy because Lambda's /var/task is read-only and event:cache/view:cache can't write there.
The standard Vapor template (optimize in build) is correct. Don't change it.
Both solve the same problem: your feature branch is behind upstream and you want the latest code.
- Rebase replays your commits on top of the latest upstream. No extra commits. Clean history.
- Merge combines the two branches and creates a merge commit as a bookmark.
PR: https://github.com/curiticshealth/Care-Management/pull/2929 Merged: 2026-03-25
The assessment component is the highest-volume transaction in the app — 1.8M Livewire interactions in 2 days (Sentry data). PR #2929 added server-side autosave that fires afterStateUpdated on every form field.
| Cache | Key pattern | Used by |
|---|---|---|
CachesIdByName::idByName() |
App\Models\{Model}:{tenant}:{name} |
7 models: MasterTaskStatus, MasterNoteDocStatus, MasterTaskPriority, MasterAssessmentStatus, MasterCaseStatus, MasterCareGapStatus, MasterFileCategory |
MasterSmartText::cachedDescriptions() |
master_smart_texts:{tenant} |
20 files — every note, task, assessment, care plan, calendar, and referral form |
Both use Cache::rememberForever() with automatic invalidation via Eloquent saved/deleted events.
The application has 140 master_* tables containing reference data (statuses, types, priorities, etc.). These are
queried millions of times but rarely change — some are truly static (genders, states, countries), others are
modified every few weeks (task statuses, case statuses).
Approach: Cache::flexible() (Laravel 11's stale-while-revalidate) at the model level via a shared trait.
// Trait added to all Master* models
Filament ships two separate layers that must stay in sync:
- PHP — blade templates, component classes, action definitions (updated via
composer update) - JS — compiled Alpine components published to
public/js/filament/(updated viaphp artisan filament:assets)
The Vapor build steps run composer install (which pulls the latest PHP), but never run php artisan filament:assets. This means every Filament version bump via composer silently leaves the published JS behind.
General uptime monitoring + catching intermittent TLS failures on specific AWS API Gateway nodes.
- General monitoring: Start with Checkly Free (6 locations, 1-2 min checks) + Sentry uptime ($1/monitor/month) if you're already on Sentry. Or self-host Uptime Kuma for free on a $5/mo VPS. UptimeRobot Free (50 monitors, 5-min checks) is another solid zero-cost option if you just need simple HTTP pings.
- Catching today's issue: Checkly Team ($64/mo) — 30s checks across 24 locations with TLS error detail. Better Stack, Sentry, Uptime Kuma, and UptimeRobot all fall short here — single-location or multi-failure requirements mean a bad node in a round-robin pool likely goes undetected.
Domains: cm.curiticspulse.com (production) · cm-uat.curiticspulse.com (UAT)
Date: 2026-03-19
- An employee on
cm-uat.curiticspulse.comand a client oncm.curiticspulse.comboth seeingERR_SSL_PROTOCOL_ERRORin Chrome on Windows - Works fine for the developer (macOS)