DEV Community

Cover image for HAProxy FAQ
Isadora Ribeiro
Isadora Ribeiro

Posted on

HAProxy FAQ

Algumas perguntas que recebo sobre HAProxy:

  1. Por que usar um HAProxy se meu provedor de nuvem já tem balancer?

  2. Como posso criar uma estrutura tolerante a falhas?

  3. Só posso utilizar como proxy reverso HTTP?

--

  1. Independência de provedor, autonomia para customização, domínio tecnológico, integração facilitada com sua aplicação, extensão de funções com Lua e Stream Processing Offload Engine (SPOE) - que permite avaliar tráfego usando aplicações Go, C, Python, .NET Core, etc.

  2. Router/switch com Virtual IP (VIP) à frente das instâncias, uso de Network Load Balancer para dividir tráfego entre instâncias em diferentes zonas, VIP com keepalived ou corosync on-prem, DNS round robin, etc.

  3. O HAProxy pode ser usado com Redis, MySQL e outros. Com as opções flexíveis de health check, pode-se enviar comandos e esperar respostas para decidir a disponibilidade de um server num cenário primário-secundário de balanceamento. Pode-se usar até agentes externos de checagem.

--

Estou sempre estudando sobre o tema e vai ser legal receber dicas de como vocês usam o HAProxy :)

2 links sobre o item 3:

Using HAProxy with the proxy protocol to better secure your database

HAProxy advanced Redis health check

E sobre HAProxy como ingress controller em Kubernetes, outro link:

Dissecting the HAProxy Kubernetes Ingress Controller

--

Com carinho,
Isadora.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay