This document provides an overview of a presentation on Laravel Octane given by Albert Chen. The presentation covered: the lifecycle of PHP and Laravel applications; an introduction to Laravel Octane and how it makes applications more friendly for long-lived processes; reminders for developing long-lived PHP applications; Laravel's service container and how containers work in Octane; how Octane supports concurrent tasks using Swoole; additional Octane features like tickers, caching, and process communication; blocking I/O in PHP and how coroutines work in Swoole; whether Octane supports coroutines; and a benchmark comparing Octane to PHP-FPM with Nginx. The document concludes with an
How happy they became with H2O/mruby and the future of HTTPIchito Nagata
The document summarizes the process of migrating the RoomClip image resizing service from Nginx to H2O. Key points include:
- The complex Nginx configuration was difficult to debug and posed security risks. H2O provided better debuggability through Ruby.
- The migration took 1-2 months and involved refactoring image processing out of the web server and into separate Converter processes.
- Benchmarks showed H2O had comparable or better performance than Nginx, with lower latency percentiles and reduced disk and S3 usage.
- Additional benefits included the ability to write unit tests in mruby and new libraries like mruby-rack for running Ruby code on H
This document provides an overview of a presentation on Laravel Octane given by Albert Chen. The presentation covered: the lifecycle of PHP and Laravel applications; an introduction to Laravel Octane and how it makes applications more friendly for long-lived processes; reminders for developing long-lived PHP applications; Laravel's service container and how containers work in Octane; how Octane supports concurrent tasks using Swoole; additional Octane features like tickers, caching, and process communication; blocking I/O in PHP and how coroutines work in Swoole; whether Octane supports coroutines; and a benchmark comparing Octane to PHP-FPM with Nginx. The document concludes with an
How happy they became with H2O/mruby and the future of HTTPIchito Nagata
The document summarizes the process of migrating the RoomClip image resizing service from Nginx to H2O. Key points include:
- The complex Nginx configuration was difficult to debug and posed security risks. H2O provided better debuggability through Ruby.
- The migration took 1-2 months and involved refactoring image processing out of the web server and into separate Converter processes.
- Benchmarks showed H2O had comparable or better performance than Nginx, with lower latency percentiles and reduced disk and S3 usage.
- Additional benefits included the ability to write unit tests in mruby and new libraries like mruby-rack for running Ruby code on H
This document summarizes a presentation about integrating the Laravel PHP framework with the Swoole extension. It discusses how Swoole provides high-performance asynchronous networking capabilities. Integrating Laravel with Swoole can boost performance by preloading the Laravel application and running requests in isolated "sandboxes" to prevent state from persisting between requests. This allows Laravel to take advantage of Swoole's asynchronous and non-blocking I/O without the typical overhead of Laravel's request lifecycle. Benchmarks show the integrated system can achieve a 5x performance increase over vanilla Laravel.
This document provides an overview of search and indexing in Adobe Experience Manager using Apache Oak. It discusses Oak query implementation, cost calculation, and various index implementations like property, ordered, Lucene, Solr, and traversing indexes. It provides details on how indexes are defined, when to reindex, debugging cost calculation, and troubleshooting Solr. The primary messages are that search is significantly different between CRX2 and Oak, Oak provides more optimization opportunities but requires more configuration, and indexes need to be understood to optimize query performance.
This document summarizes a presentation about integrating the Laravel PHP framework with the Swoole extension. It discusses how Swoole provides high-performance asynchronous networking capabilities. Integrating Laravel with Swoole can boost performance by preloading the Laravel application and running requests in isolated "sandboxes" to prevent state from persisting between requests. This allows Laravel to take advantage of Swoole's asynchronous and non-blocking I/O without the typical overhead of Laravel's request lifecycle. Benchmarks show the integrated system can achieve a 5x performance increase over vanilla Laravel.
This document provides an overview of search and indexing in Adobe Experience Manager using Apache Oak. It discusses Oak query implementation, cost calculation, and various index implementations like property, ordered, Lucene, Solr, and traversing indexes. It provides details on how indexes are defined, when to reindex, debugging cost calculation, and troubleshooting Solr. The primary messages are that search is significantly different between CRX2 and Oak, Oak provides more optimization opportunities but requires more configuration, and indexes need to be understood to optimize query performance.
- The document discusses the use of ref and reactive in Vue Composition API. Ref and reactive are methods used to define reactive data in Vue.
- Ref can be used on both objects and primitive values, while reactive only works on objects. When accessing a ref, the .value property must be used, while reactive data can be accessed directly.
- The document provides examples of ref and reactive implementation and compares their characteristics and proper usage. It also discusses a common development approach of extracting business logic into functions using ref and reactive.
This document discusses implementing lightweight concurrency in PHP. It introduces spatie/fork, an open source library for running PHP code concurrently. The library provides an easy to use solution for running code concurrently. It was created by Freek Van der Herten, who develops open source packages and has over 300 packages on Packagist with over 190 million downloads total.
This document discusses using the Stimulus JavaScript framework for frontend development. Stimulus is described as having modest ambitions and not seeking to take over the entire frontend like larger frameworks. It is designed to augment HTML with minimal behavior rather than handle rendering. Key aspects discussed include controllers, actions, targets, values, and the framework's lifecycle methods. The document suggests Stimulus lets developers easily write JavaScript and know where it should go.
This document discusses coding style, static code analysis, and PHP. It begins with an introduction to the speaker and outlines topics including what coding style is, PHP coding style standards like PSR-2 and PSR-12, and what static code analysis is. It then discusses specific static code analysis tools for PHP like PHPStan, Psalm, and Phan, covering how to install them, what kinds of checks they perform like syntax, type checks, and array shapes, and how to configure them.