Performance Investigation: Laravel Rust Experiences 45% Error Rate Under 10,000 Concurrent Mixed-Workload Users

Open
#134 0 comments 6 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
mysql, redis, rust

Research direction

The report identifies a 45.03% error rate under a mixed workload and notes that MySQL reached its CPU limit, with lock contention as a possible bottleneck; it does not include benchmark scripts, application configuration, or raw results. Start by requesting and reviewing the offered k6 scripts, configurations, and raw results, then compare failing requests with database and runtime metrics. Done means identifying whether the failures come from the framework, database limits, or application configuration and documenting the evidence.

Written by the indexing model from the issue text.

Description

Hello Laravel Rust Team,

First, congratulations on the work you are doing with Laravel Rust. I have been evaluating Laravel Rust against Spring Boot and traditional Laravel PHP to understand its performance, scalability, and suitability for high-concurrency production applications.

During my benchmarking, I conducted a load test involving 10,000 concurrent virtual users. The results were very interesting, particularly when comparing lightweight API requests against database-intensive workloads.

I would like to share my findings and get some technical feedback from the team.

1. Test Environment

  • Concurrent users: 10,000

  • Application resources: 2 vCPU / 2 GB RAM per application

  • Database: Shared MySQL instance

  • Cache: Redis

  • Load testing tool: k6

  • Frameworks tested:

    • Laravel Rust

    • Spring Boot

    • Laravel PHP (PHP-FPM)

2. Basic Workload Results

The basic workload tested lightweight API endpoints.

Framework | Requests/sec | Average (ms) | p95 (ms) | Error rate -- | -- | -- | -- | -- Laravel Rust | 44,806 | 124.8 | 371.1 | 0% Spring Boot | 38,229 | 163.8 | 383.0 | 0% Laravel PHP | 1,017 | 6,504.0 | 25,264.5 | 3.79%

The most concerning result was Laravel Rust's 45.03% error rate, with 6,247 timeouts.

Spring Boot completed the same test with zero reported errors and zero timeouts.

4. Observations

According to the benchmark report, the shared MySQL instance reached its 2-vCPU CPU limit during the mixed workload.

The report also identified database lock contention as a potential bottleneck.

However, I would like to understand why Laravel Rust experienced significantly more failures than Spring Boot under the same reported resource constraints.

5. Questions for the Laravel Rust Team

I would appreciate your technical guidance on the following:

  1. Are there any known concurrency limitations when Laravel Rust handles thousands of simultaneous database-backed requests?

  2. Are there recommended configurations for database connection pooling and concurrent database operations?

  3. How does Laravel Rust handle concurrent database transactions and lock contention?

  4. Are there recommended configurations for Tokio workers, runtime settings, and request concurrency?

  5. Could the high error rate indicate connection pool exhaustion, transaction contention, runtime limitations, or application-level configuration issues?

  6. Are there recommended production configurations for high-concurrency applications?

  7. Are there existing benchmarks or recommendations for database-intensive applications involving concurrent financial transactions?

6. What I Would Like to Understand

My objective is to establish whether Laravel Rust can reliably support high-concurrency, database-intensive applications, particularly financial platforms and core banking systems.

The basic workload results are extremely promising. However, the mixed workload results raise concerns that I would like to investigate before considering Laravel Rust for production financial applications.

I would be happy to share the complete benchmark reports, k6 test scripts, application configurations, and raw test results to help with further investigation.

I am not suggesting that this is necessarily a framework bug. I would first like to understand whether this behaviour is related to runtime configuration, database handling, concurrency management, or another underlying issue.

Thank you for your work on Laravel Rust. I look forward to your technical feedback and `recommendations.

Dominant language
Rust
Stars
2.2k
Forks
105
Avg merge
7h 19m
Merged PRs (30d)
41

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from laravel/rust

All issues in laravel/rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.