Dev Tools · 2h ago
Perl PAGI Middleware Demo Shows ASGI-Style Stack in Action
A developer ported a three-layer middleware stack from Plack/PSGI and Starlette/ASGI to PAGI, an async Perl interface modeled after ASGI. The demo includes a logger, authenticator, and profile router, all running on perl-5.40.0 with PAGI::Test::Client. PAGI middleware uses a wrap method that returns a new async app, with optional subclassing for convenience helpers.
Meridian48 take
The demo is niche but highlights Perl's ongoing alignment with modern async patterns, though adoption remains limited.
perlmiddleware