Load Balancer

You might say

My site runs on two servers now—how does a request know which one to hit, and what happens if one goes down?

A single entry point in front of multiple backend instances that routes requests to healthy nodesWhen an app runs three backend instances behind one domain, a load balancer distributes incoming requests across healthy nodes and removes a crashed instance after failed health checks. If login sessions live only in one machine's memory, traffic landing on another instance will drop the login, so sessions must move to shared storage.
LBLoad Balancing

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Add a `/health` endpoint for the load balancer's health checks, and move user sessions and temporary upload state out of single-instance memory into a shared database or Redis. Then start two instances, stop one, and verify that traffic shifts to the healthy instance without signing users out.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading