Explore tools, approaches, and techniques to fine-tune and increase the performance of your Laravel web application
Key Features
- Get a 360-degree view of what it takes to design and build a high performing application with Octane
- Reuse objects across requests and execute the 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 tool that can help you achieve remarkable app performance. With Laravel Octane, you will find tools (queues, cache, tables) that facilitate a new asynchronous approach to improving application performance.
Usually, when developing an application, as developers, we focus on functionality and not on optimization. While this may be the correct approach, there will be cases when you know from the beginning that the application will be used by many users simultaneously. In such cases, you should be aware of the strategies, tools, and best practices that are available to make your application scalable and performant. The 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. Releasing a performing application has 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
- Learn the dynamics of the request life cycle in a classic Laravel application and one based on Laravel Octane
- Explore the 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 application
- Ready the production environment to host Laravel Octane and its dependencies
Who This Book Is For
Laravel developers who want to improve their software architecture, from a basic or standard architecture to a more scalable or performant one. Readers will gain an understanding of the pros and cons in applying potential enhancements. Basic knowledge of Laravel fundamentals is required.
Table of Contents
- Laravel Web Application architecture
- Configuring the RoadRunner Application Server
- Using the Swoole Application Server
- Build a Web Application powered by Laravel Octane
- Going to Production with Laravel Octane
- Reducing latency and managing data with asynchronous approach
- Applying Asynchronous and Concurrency in your application