Asynchronní programování v PHP
Loading...
Date
2024-06-11
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
Abstract
Tato bakalářská práce se zabývá analýzou konceptu asynchronního programování, porovnáním asynchronních PHP technologií a implementací ukázkové webové aplikace. Asynchronní přístup umožňuje webovému serveru efektivněji zpracovávat příchozí requesty a díky tomu jich odbavit více naráz. V rámci porovnání bylo vybráno 8 technologií, které umožňují implementovat asynchronicitu v PHP. Technologie byly nejprve porovnány na základě faktických rozdílů, poté byl proveden benchmark počtu zpracovaných requestů za sekundu. Vítěz PHP porovnání byl následně zařazen do druhého benchmarku s dalšími programovacími jazyky. Výhody asynchronního přístupu byly demonstrovány vytvořením ukázkové aplikace ve frameworku Laravel. Tato aplikace získává informace o Bitcoin ekosystému z různých API, zpracovává je a poskytuje uživateli v čitelné formě. Automatizované nasazení aplikace je řešeno pomocí GitHub Actions, běhové prostředí je vytvořeno přes Docker.
This bachelor thesis focuses on the analysis of asynchronous programming, comparison of various asynchronous PHP technologies and implementation of a demo web application. The asynchronous approach allows the web server to process incoming requests more efficiently and handle more requests at once. The comparison includes 8 selected asynchronous PHP technologies. These technologies were first compared based on factual differences, followed by a benchmark measuring number of requests processed per second. The winner of the PHP comparison was then placed in a second benchmark with other programming languages. The benefits of the asynchronous approach were demonstrated by creating a demo application in Laravel framework. This application retrieves data about the Bitcoin ecosystem from various APIs, processes it and them provides it to the user in a readable form. Automated deployment of the application is handled using GitHub Actions, and the runtime environment is created via Docker.
This bachelor thesis focuses on the analysis of asynchronous programming, comparison of various asynchronous PHP technologies and implementation of a demo web application. The asynchronous approach allows the web server to process incoming requests more efficiently and handle more requests at once. The comparison includes 8 selected asynchronous PHP technologies. These technologies were first compared based on factual differences, followed by a benchmark measuring number of requests processed per second. The winner of the PHP comparison was then placed in a second benchmark with other programming languages. The benefits of the asynchronous approach were demonstrated by creating a demo application in Laravel framework. This application retrieves data about the Bitcoin ecosystem from various APIs, processes it and them provides it to the user in a readable form. Automated deployment of the application is handled using GitHub Actions, and the runtime environment is created via Docker.
Description
Subject(s)
Asynchronní programování, Event Loop, PHP, Docker, benchmark, Bitcoin, Laravel