High Performance with Laravel Octane: Learn to fine-tune and optimize PHP and Laravel apps using Octane and an asynchronous approach

Butti, Roberto

  • 出版商: Packt Publishing
  • 出版日期: 2023-01-13
  • 售價: $1,490
  • 貴賓價: 9.5$1,416
  • 語言: 英文
  • 頁數: 204
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801819408
  • ISBN-13: 9781801819404
  • 相關分類: LaravelPHP
  • 下單後立即進貨 (約3~4週)

商品描述

Explore tools, techniques, and practices to remove performance bottlenecks and enhance the stability of your Laravel and PHP web applications

Key Features

- Get a complete view of what it takes to design and build a high-performing application with Octane
- Reuse objects across requests and execute application logic asynchronously
- Learn key elements to design and build a performance-optimized and production-ready application

Book Description

Laravel Octane is a very powerful component in the Laravel ecosystem that can help you achieve remarkable app performance. With Laravel Octane, you will find tools (queues, cache, and tables) that facilitate a new asynchronous approach for improving application performance.

This book highlights how Laravel Octane works, what steps to take in designing an application from the start, what tools you have at your disposal, and how to set up production environments. It provides complete coverage of the strategies, tools, and best practices to make your apps scalable and performant. This is especially important as optimization is usually the overlooked part in the application development lifecycle. You will explore the asynchronous approach in Laravel and be able to release high-performing applications that have a positive impact on the end-user experience.

By the end of this book, you will find yourself designing, developing, and releasing high-performance applications.

What you will learn

- Understand the dynamics of the request life cycle in a classic Laravel application
- Explore possibilities with OpenSwoole and Roadrunner and choose the best solution for your application
- Analyze the potential bottlenecks of a classic web application
- Configure Laravel Octane with Roadrunner and OpenSwoole
- Implement functionality using asynchronous mechanisms and run tasks in parallel in the Laravel app
- Prepare the production environment to host Laravel Octane and its dependencies
- Understand the pros and cons of applying potential enhancements to your Laravel app

Who this book is for

The book is for existing Laravel developers who want to improve their software architecture, from a basic or standard architecture to a more scalable and performant one. Basic knowledge of Laravel fundamentals is required.

商品描述(中文翻譯)

探索工具、技術和實踐,以消除性能瓶頸,提升您的 Laravel 和 PHP 網絡應用的穩定性。

主要特點:
- 瞭解使用 Octane 設計和構建高性能應用所需的完整視圖
- 在請求之間重複使用對象並異步執行應用邏輯
- 學習設計和構建性能優化且可投入生產的應用的關鍵要素

書籍描述:
Laravel Octane 是 Laravel 生態系統中非常強大的組件,可以幫助您實現卓越的應用性能。使用 Laravel Octane,您將找到一些工具(隊列、緩存和表格),以促進改進應用性能的新異步方法。

本書介紹了 Laravel Octane 的工作原理,從一開始設計應用的步驟,您可以使用哪些工具,以及如何設置生產環境。它完整涵蓋了使您的應用可擴展和高性能的策略、工具和最佳實踐。這對於優化通常被忽視的應用開發生命周期來說尤為重要。您將探索 Laravel 中的異步方法,並能夠釋放對終端用戶體驗有積極影響的高性能應用。

通過閱讀本書,您將能夠設計、開發和發布高性能應用。

您將學到的內容:
- 瞭解經典 Laravel 應用程序的請求生命週期動態
- 探索 OpenSwoole 和 Roadrunner 的可能性,並選擇最適合您的應用的解決方案
- 分析經典 Web 應用程序的潛在瓶頸
- 使用 Roadrunner 和 OpenSwoole 配置 Laravel Octane
- 使用異步機制實現功能,在 Laravel 應用中並行運行任務
- 為托管 Laravel Octane 及其依賴項準備生產環境
- 瞭解將潛在增強應用於 Laravel 應用的利弊

本書適合對象:
本書適合現有的 Laravel 開發人員,他們希望從基本或標準架構改進其軟件架構,使其更具可擴展性和性能。需要具備 Laravel 基礎知識。

目錄大綱

1. Understanding the Laravel Web Application Architecture
2. Configuring the RoadRunner Application Server
3. Configuring the Swoole Application Server
4. Building a Laravel Octane Application
5. Reducing Latency and Managing Data with an Asynchronous Approach
6. Using Queues to Apply the Asynchronous Approach in Your Application
7. Configuring the Laravel Octane Application for the Production Environment

目錄大綱(中文翻譯)

1. 瞭解 Laravel 網頁應用程式架構
2. 設定 RoadRunner 應用程式伺服器
3. 設定 Swoole 應用程式伺服器
4. 建立 Laravel Octane 應用程式
5. 以非同步方式減少延遲並管理資料
6. 使用佇列在應用程式中應用非同步方式
7. 設定 Laravel Octane 應用程式的生產環境