Codync
무료 오픈소스 1:1 대안, Grok Bot과 Muse 대신
실시간 로드 밸런서로 6가지 라우팅 알고리즘, 대기열이 있는 서버 풀, 상태 검사·실패 처리 및 선택별 지연 시간을 제공합니다
A live load balancer: six routing algorithms, a pool of servers with queues, health checks and failures, and the latency each choice costs.
개발 도구JavaScript · CSSGitHub @himeshahuja온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기A load balancer simulated live: six routing algorithms, queues, health checks and failures, and what each choice does to tail latency
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A load balancer in front of a pool of servers, simulated in the browser. Switch routing algorithms live and watch where requests go, how queues build, and what each choice does to tail latency.
Try it: https://himeshahuja.github.io/load-balancer/
Until you touch anything, a short demo loops. It starts on round robin, switches to least connections, crashes a server and brings it back.
| Algorithm | How it picks |
|---|---|
| Round robin | Each server in turn |
| Random | Uniformly at random |
| Least connections | Fewest requests in flight |
| Power of two choices | The less busy of two random servers |
| Least response time | Lowest recent latency (EWMA), weighted by requests in flight |
| Consistent hashing | Each client always maps to the same server on a hash ring (40 virtual nodes per server) |
With five servers, one of them 2.5× slower, at 180 requests per second:
| Algorithm | p50 | p99 | Failed |
|---|---|---|---|
| Round robin | 80 ms | 1,264 ms | 5.5% |
| Random | 84 ms | 1,187 ms | 5.5% |
| Least connections | 79 ms | 294 ms | 0% |
| Power of two choices | 79 ms | 319 ms | 0% |
| Least response time | 77 ms | 236 ms | 0% |
| Consistent hashing | 406 ms | 1,202 ms | 26% |
Round robin and random keep sending the slow server its full share until its queue overflows. The adaptive algorithms see it holding requests longer and route around it. Consistent hashing keeps clients sticky, which is great for caches, but its busiest clients overload their server.
A discrete-event simulation in virtual milliseconds (js/sim.js):
node tests/check.mjs runs:
All pass.
No build step. To run locally:
python3 -m http.server 8000