latency-critical-systems

Optimizes latency-sensitive Laravel app paths with instrumentation and bottleneck analysis.

Updated Jan 6, 2023
One-click install
npx skills add https://github.com/pekral/phpstan-rules --skill latency-critical-systems-pekral
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latency-critical-systems
Source: https://github.com/pekral/phpstan-rules/tree/main/.claude/skills/latency-critical-systems
Command: npx skills add https://github.com/pekral/phpstan-rules --skill latency-critical-systems-pekral

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses performance bottlenecks in latency-sensitive Laravel applications, ensuring that critical paths like real-time dashboards and execution gateways meet strict p95/p99 latency targets.

Core Features & Use Cases

  • Hot Path Mapping: Provides a structured methodology to instrument and measure every segment of a request from event source to browser render.
  • Optimization Strategy: Offers a prioritized framework for resolving N+1 queries, implementing intelligent caching, and managing queue backpressure.
  • Use Case: Use this skill when your application's real-time dashboard is experiencing high latency or stale data, and you need to identify whether the bottleneck lies in database queries, queue depth, or cache staleness.

Quick Start

Use the latency-critical-systems skill to map the hot path of the dashboard route and identify the primary bottleneck segment.

Frequently Asked Questions about latency-critical-systems

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Laravel performance for latency-critical real-time dashboards?

To optimize Laravel performance for latency-critical paths, systematically instrument the request lifecycle from event source to browser render to identify bottlenecks, then apply prioritized strategies for resolving N+1 queries, implementing intelligent caching, and managing queue backpressure.

What is the best way to identify database or queue bottlenecks causing high latency in Laravel?

The best way to identify high latency bottlenecks in Laravel is by mapping the hot path of the specific route, which provides a structured methodology to measure every segment of the request and pinpoint whether the issue lies in database queries, queue depth, or cache staleness.

How do I meet strict p95 and p99 latency targets in a Laravel application?

Meeting strict p95 and p99 latency targets in Laravel requires optimizing latency-sensitive execution gateways and streaming services by enforcing database and queue optimization guardrails while continuously verifying cache freshness.

Why does my Laravel real-time dashboard show stale data and high response latency?

High response latency and stale data in Laravel real-time dashboards typically occur when cache freshness verification fails or queue backpressure builds up, requiring systematic instrumentation of the request lifecycle to locate the exact bottleneck segment.

Can I use static analysis to prevent performance regressions when optimizing Laravel hot paths?

While optimizing Laravel hot paths focuses on measuring request lifecycle segments and applying queue guardrails, utilizing static analysis tools like PHPStan can help enforce database optimization rules and prevent structural performance regressions during development.