Skip to content

Instantly share code, notes, and snippets.

View arunnabraham's full-sized avatar
🏠
Working from home

Arun Abraham arunnabraham

🏠
Working from home
  • India
View GitHub Profile
@arunnabraham
arunnabraham / Pause-Wait-Exec.php
Last active February 23, 2023 03:19
An example for pause and continue execution using loop/generators with ReactPHP ft Future Tick.
<?php
/**
* An example for pause and continue execution using loop/generators with ReactPHP ft Future Tick.
*
*/
require_once __DIR__ . '/vendor/autoload.php';
use React\EventLoop\Loop;
use function React\Promise\Timer\sleep;
@arunnabraham
arunnabraham / HAProxy_Containers.md
Last active October 29, 2021 08:07
HAProxy on Host with Containarized Web Application

Why use HAProxy

Although there are various reasons to use various proxy servers, HAProxy is industry proven and one of the popular high performance reverse proxy and load balancer.

We could connect it with various web servers, databases or other network oriented apps to connect and configure

Using with Containarized Web Applications when HAPoxy in Host Machine

Suppose we need to develop in dockerized application, yet in some cases we are not easly able to do port mapping with hosts 80 with container's 80 as the privileged port.