hn.today

Laravel, reimagined in Rust: The fastest full-stack framework in the world

laravel.com113 points23 comments
Screenshot of Laravel, reimagined in Rust: The fastest full-stack framework in the world

Laravel Rust is presented as a full-stack web framework that brings Laravel’s familiar, batteries-included approach to Rust. It combines asynchronous routing and dependency injection with compile-time-checked models and queries, database migrations, caching, storage, authentication, authorization, social login, notifications, validation, and testing. Inertia integration lets handlers render React, Vue, or Svelte pages directly, avoiding a separately maintained API; traditional server-rendered templates are also supported. The framework builds on Tokio and Axum, and offers background queues, recurring tasks, WebSocket broadcasting, and durable workflows that checkpoint results and can resume after sleeps, restarts, or deployments. Its creators also emphasize coding-agent support, including project instructions, framework-specific skills, and version-matched documentation bundled with new projects.

The central argument is that Rust’s native compilation and type safety can deliver substantially higher performance without giving up the integrated development experience Laravel users expect. Reported Laravel Cloud comparisons show 1,774 requests per second versus 97 for Laravel PHP, median latency of 62 versus 78 milliseconds, memory use of 16 versus 134 MB, and median scale-to-zero wake time of 154 versus 712 milliseconds. The measurements use specified workloads: peak throughput during a 20-minute ramp, latency and memory at a steady 50 requests per second, and wake times across nine regions. Laravel Rust supports PostgreSQL, MySQL, and SQLite through a shared API, is MIT-licensed, and can run on Linux servers, with Laravel Cloud offering built-in deployment, autoscaling, and scale-to-zero.

Read on laravel.com23 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.