Skip to content

Performance Impact

Laritor is designed to deliver deep observability without sacrificing application performance.

While any monitoring tool introduces some degree of overhead (as it must intercept and send real-time data), Laritor is engineered to keep that impact virtually unnoticeable — even under heavy load. Here’s how:

  • Post-response dispatch: Laritor defers event transmission until after your application has responded to the user. This means event delivery never delays your response lifecycle.
  • Non-blocking behavior: Data is sent in the background using Laravel’s shutdown hooks or queueable methods, depending on context.

Why it matters: Your users never wait for Laritor. Requests complete at full speed, regardless of monitoring.

  • Cloudflare Workers at 330+ locations: All ingestion occurs at the edge — not a centralized data center.
  • Geographic proximity: Events are pushed to the closest Cloudflare region, minimizing round-trip latency.

Example: A server in Frankfurt sends data to a nearby German edge, not across the Atlantic.

  • Immediate acknowledgment: Our Cloudflare Workers respond with HTTP 200 OK as soon as they receive a payload.
  • Async queue processing: Actual ingestion (like queuing and transformation) happens after the response — asynchronously.
  • Consistent performance: This two-step approach yields single-digit millisecond responses at the edge, regardless of your application’s traffic volume.

Result: Laritor’s ingest responses consistently complete in single-digit milliseconds, even during high traffic.

  • No heavy abstractions: Internally, we avoid Laravel Collections, macros, and costly helpers in the critical path.
  • Low-level PHP: We use native control structures and stream-based logic for faster processing and reduced CPU usage.

In performance-critical paths, we prioritize speed over syntactic sugar.

  • Tiny install size: The full Composer package is under ~100 KB when compressed.
  • Minimal files: The client includes fewer than 50 files — no unnecessary bloat or third-party overhead.

Easy to install. Easy to maintain. Zero friction.

⚠️ What About High-Traffic Applications?

Section titled “⚠️ What About High-Traffic Applications?”

For very high throughput systems, where requests arrive faster than PHP workers can recycle:

  • Deferred transmission is still used, but the background HTTP call can temporarily hold the worker process open.
  • To address this, edge ingestion and non-blocking ACKs dramatically reduce hold time — often under 10ms.
OptimizationBenefit
Deferred transmissionDoesn’t block user requests
Edge ingestionFaster, location-aware event handling
Async acknowledgmentSub-10ms response time
Low-level PHPMinimal CPU overhead
Lightweight packageSmall install size, fast boot

If you’re curious about Laritor’s performance in your specific stack or traffic model, feel free to reach out: 📬 [email protected]

We’re happy to provide benchmarks, real-world load examples, and guidance on zero-impact monitoring.