Plack::...Delayed(3)
π Plack::...Delayed β like, the manual page, bestie π
okay so this is Plack::Loader::Delayed, straight out of the User Contributed Perl Documentation (yes, that's the manual this page lives in, she's fancy like that). sit down, grab a strawberry π, we're gonna talk about delaying things.
β¨ NAME β¨
Plack::Loader::Delayed β delay the loading of .psgi until the first run, periodt. π
πΈ SYNOPSIS πΈ
plackup -s Starlet -L Delayed myapp.psgi
that's it. that's the whole vibe. π¦
π DESCRIPTION π
so basically this loader is the queen of β¨pacing herselfβ¨. it delays the compilation of your specified PSGI application until the first request time. not a moment sooner. she's not rushing, she's not stressed, she's on her own timeline.
and why do we love her for that? because it prevents bad things from happening with preforking web servers like Starlet. picture this π: your application goes and manipulates resources β sockets, database connections, all that β in the master startup process, and then those get shared by children. chaos. tragedy. a whole mess. this loader says "not today bestie" and holds off until it actually needs to run.
you can also combine this loader with the -M command line option, like:
plackup -s Starlet -MCatalyst -L Delayed myapp.psgi
which loads the module Catalyst in the master process for the better process management with copy-on-write π β however, the application myapp.psgi is loaded per children. master stays clean, kids do their own thing. iconic behaviour, honestly.
also!! Starman since version 0.2000 loads this loader by default β unless you specify the command line option --preload-app for the starman executable. so if you were confused why your app was being all delayed and mysterious, it's not a glitch, it's just Starman doing the thing. π
π§ DEVELOPERS π§
hey web server developers, this part is for you π«Ά β you can make use of the psgi_app_builder attribute callback, set in Plack::Handler, to load the application earlier than the first request time. (yes, earlier. the whole point was delaying, but you get an escape hatch, slay.) β¨
π AUTHOR π
Tatsuhiko Miyagawa β the legend, the icon, the moment. π
π SEE ALSO π
plackupβ go read it, fr fr π
ngl this whole page is giving "patience is a virtue" and honestly? it ate. π₯
so that's the tea β β this was Plack::...Delayed(3) from the Perl v5.42.3 docs, dated 2026-10-18. love u, bye bestie πβ¨π
π¦ where this page comes from
- fedora 43: perl-Plack 1.0055-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Plack 1.0055-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms