Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
High Performance with Laravel Octane

You're reading from   High Performance with Laravel Octane Learn to fine-tune and optimize PHP and Laravel apps using Octane and an asynchronous approach

Arrow left icon
Product type Paperback
Published in Jan 2023
Publisher Packt
ISBN-13 9781801819404
Length 204 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Roberto Butti Roberto Butti
Author Profile Icon Roberto Butti
Roberto Butti
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Part 1: The Architecture
2. Chapter 1: Understanding the Laravel Web Application Architecture FREE CHAPTER 3. Part 2: The Application Server
4. Chapter 2: Configuring the RoadRunner Application Server 5. Chapter 3: Configuring the Swoole Application Server 6. Part 3: Laravel Octane – a Complete Tour
7. Chapter 4: Building a Laravel Octane Application 8. Chapter 5: Reducing Latency and Managing Data with an Asynchronous Approach 9. Part 4: Speeding Up
10. Chapter 6: Using Queues to Apply the Asynchronous Approach in Your Application 11. Chapter 7: Configuring the Laravel Octane Application for the Production Environment 12. Index 13. Other Books You May Enjoy

Launching Laravel Octane

To launch Laravel Octane, run the following command:

php artisan octane:start

Once Laravel Octane is started you can visit http://127.0.0.1:8000 in your browser.

Your browser will be shown the classic Laravel welcome page. There are no visual differences in the welcome pages of Laravel and Laravel Octane. The big difference is the way your application is served via HTTP.

You can control the execution of Octane with some parameters:

  • --host: Default 127.0.0.1, the IP address the server should bind to
  • --port: Default 8000, the port the server should be available on
  • --workers: Default auto, the number of workers that should be available to handle requests
  • --max-requests: Default 500, the number of requests to process before reloading the server

For example, you can launch Octane with just two workers:

php artisan octane:start --workers=2

So now, open the page at http://localhost:8000 more than twice (two is the number...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image