# Laravel Octane (Laravel) > Octane の設定、Swoole、RoadRunner、並行タスク、メモリリークの防止、パフォーマンス向上、デプロイ - 18 面接問題 - Senior - [面接問題: Laravel](https://sharpskill.dev/ja/technologies/laravel/interview-questions.md) ## 1. Laravel Octane とは何ですか? **回答** Laravel Octane は、アプリケーションをリクエスト間でメモリに保持することで Laravel アプリケーションのパフォーマンスを大幅に向上させる公式パッケージであり、リクエストごとのブートストラップコストを排除します。Swoole や RoadRunner のような永続的なアプリケーションサーバーに依存して、アプリケーションを RAM にロードした状態で維持します。これにより、高トラフィックのアプリケーションにおいて従来の PHP-FPM と比較して最大 10 倍のパフォーマンス向上を達成できます。 ## 2. Laravel Octane における Swoole と RoadRunner の主な違いは何ですか? **回答** Swoole は C で書かれた PHP 拡張で、PECL 経由でのインストールが必要であるのに対し、RoadRunner は Go で書かれたスタンドアロンのバイナリで、PHP 拡張を一切必要としません。Swoole は一般的にわずかに高いパフォーマンスと、WebSockets のようなネイティブ機能を多く提供しますが、RoadRunner はデプロイがより簡単で、コンパイルなしであらゆるプラットフォームで動作します。選択はインフラの制約とプロジェクト固有のニーズによって決まります。 ## 3. Laravel Octane サーバーを起動するコマンドはどれですか? **回答** Octane を起動する専用の artisan コマンドは octane:start で、octane.php ファイルで設定された永続的なアプリケーションサーバーを起動します。このコマンドは、worker の数を定義する --workers、待ち受けポートを指定する --port、開発中にファイルが変更されたときにアプリケーションを自動的にリロードする --watch など、複数のオプションを受け付けます。本番環境では、サーバーを稼働させ続けるために Supervisor のようなプロセスマネージャーの使用が推奨されます。 ## さらに15問利用可能 - 従来の PHP-FPM と比較して Octane を使用する主な利点は何ですか? - Octane の worker 数を定義する設定はどれですか? 無料で登録: https://sharpskill.dev/ja/login ## その他のLaravel面接トピック - [PHPの基礎](https://sharpskill.dev/ja/technologies/laravel/interview-questions/php-basics.md): 25問, Junior - [PHP オブジェクト指向の基礎](https://sharpskill.dev/ja/technologies/laravel/interview-questions/php-oop-essentials.md): 20問, Junior - [Composer & Autoloading](https://sharpskill.dev/ja/technologies/laravel/interview-questions/composer-autoloading.md): 18問, Junior - [Laravelの基礎](https://sharpskill.dev/ja/technologies/laravel/interview-questions/laravel-fundamentals.md): 20問, Junior - [Laravel ルーティング](https://sharpskill.dev/ja/technologies/laravel/interview-questions/laravel-routing.md): 20問, Junior - [Blade Templates](https://sharpskill.dev/ja/technologies/laravel/interview-questions/blade-templates.md): 18問, Junior - [Request & Response](https://sharpskill.dev/ja/technologies/laravel/interview-questions/request-response.md): 20問, Junior - [Eloquent ORM の基礎](https://sharpskill.dev/ja/technologies/laravel/interview-questions/eloquent-orm-basics.md): 22問, Junior - [Eloquent Relationships](https://sharpskill.dev/ja/technologies/laravel/interview-questions/eloquent-relationships.md): 25問, Mid-Level - [Migrations & Schema Builder](https://sharpskill.dev/ja/technologies/laravel/interview-questions/database-migrations.md): 20問, Mid-Level - [バリデーションとフォーム](https://sharpskill.dev/ja/technologies/laravel/interview-questions/validation-forms.md): 22問, Mid-Level - [認証](https://sharpskill.dev/ja/technologies/laravel/interview-questions/authentication.md): 20問, Mid-Level - [認可とPolicies](https://sharpskill.dev/ja/technologies/laravel/interview-questions/authorization-policies.md): 18問, Mid-Level - [API Resources & Authentication](https://sharpskill.dev/ja/technologies/laravel/interview-questions/api-resources-authentication.md): 26問, Mid-Level - [ミドルウェア](https://sharpskill.dev/ja/technologies/laravel/interview-questions/middleware.md): 18問, Mid-Level - [Service Container & DI](https://sharpskill.dev/ja/technologies/laravel/interview-questions/service-container-di.md): 20問, Mid-Level - [Queues & Jobs](https://sharpskill.dev/ja/technologies/laravel/interview-questions/queues-jobs.md): 22問, Mid-Level - [Events & Listeners](https://sharpskill.dev/ja/technologies/laravel/interview-questions/events-listeners.md): 18問, Mid-Level - [通知とメール](https://sharpskill.dev/ja/technologies/laravel/interview-questions/notifications-mail.md): 20問, Mid-Level - [File Storage](https://sharpskill.dev/ja/technologies/laravel/interview-questions/file-storage.md): 18問, Mid-Level - [Testing & PHPUnit](https://sharpskill.dev/ja/technologies/laravel/interview-questions/testing-phpunit.md): 24問, Mid-Level - [Caching](https://sharpskill.dev/ja/technologies/laravel/interview-questions/caching.md): 18問, Mid-Level - [Livewire & Inertia](https://sharpskill.dev/ja/technologies/laravel/interview-questions/livewire-inertia.md): 20問, Mid-Level - [Eloquent Advanced](https://sharpskill.dev/ja/technologies/laravel/interview-questions/eloquent-advanced.md): 24問, Senior - [Repository Pattern](https://sharpskill.dev/ja/technologies/laravel/interview-questions/repository-pattern.md): 20問, Senior - [Laravel パッケージ](https://sharpskill.dev/ja/technologies/laravel/interview-questions/laravel-packages.md): 20問, Senior - [Performance Optimization](https://sharpskill.dev/ja/technologies/laravel/interview-questions/performance-optimization.md): 22問, Senior - [Security Best Practices](https://sharpskill.dev/ja/technologies/laravel/interview-questions/security-best-practices.md): 22問, Senior - [Laravel Distributed Systems](https://sharpskill.dev/ja/technologies/laravel/interview-questions/laravel-distributed-systems.md): 22問, Senior - [Observability & Monitoring](https://sharpskill.dev/ja/technologies/laravel/interview-questions/observability-monitoring.md): 20問, Senior - [Deployment & DevOps](https://sharpskill.dev/ja/technologies/laravel/interview-questions/deployment-devops.md): 20問, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ja/technologies/laravel/interview-questions/laravel-octane