How To Scale Bagisto With Laravel Octane

Updated 20 December 2023


Welcome to our new dev doc for making Bagisto faster with Laravel Octane!

Introduce Bagisto as a powerful Laravel-based E-commerce platform and highlight the significance of optimizing its performance for handling increased traffic. This guide will help you optimize your online store’s performance, ensuring it runs smoothly even with a high number of visitors.

What is Octane:- 

Laravel Octane significantly enhances your application’s performance by leveraging robust application servers like Open Swoole, Swoole, and RoadRunner. Octane initializes your application once, stores it in memory, and swiftly processes incoming requests, resulting in remarkably accelerated speeds.

Octane Setup:-

To enable octane in your Bagisto e-commerce application, you need to follow the steps given below.

    1. Open your terminal and navigate to the root directory of your application.
    2. To install Octane in your application, you need to execute the following command:
    3. Run the following command to install Octane configuration files into your application.
    4. You’ll be prompted to choose the server you want to use for your application.

      a). Roadrunner
      b). Swoole

      Swoole is actually a PHP extension that adds a lot of features to the language that can be used to increase your application’s performance. Due to this, it is considered a lot more featured than Roadrunner.

    5. Press any key to select your preferred server.
    6. Octane has been successfully installed in your project.

Next, you’ll have to launch the Octane server within your project.

  1. To initiate the Octane server for your Bagisto e-commerce application, you need to run the following command in your terminal:
  2. Now, you can access your local server with your application’s Octane at

Now, access your local server instance and notice the difference. Enabling Octane has significantly reduced your application’s loading time to half of its previous timing.

Before implementing Octane, the frontend application’s speed was

With Octane, the frontend application’s speed improved significantly. The loading time was

After enabling octane in your application, Your application will run more smoothly and faster. That is, improve your user experience and get user traffic.

This documentation simplifies the process of speeding up Bagisto using Laravel Octane, presenting technical concepts in an easily understandable manner for developers.

To further check the live implementation of laravel octane in bagisto, you can refer to the video below:


Thanks for reading this blog. Please comment below if you have any question. Also you can hire laravel developers for your custom laravel projects. kindly explore our extensions.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home