Codync
免費、開源的 1:1 替代方案,取代 Grok Bot 與 Muse。從 iPhone、Mac 或 Linux 桌面將 Claude Code、Codex、Cursor 與 40+ 程式碼代理人作為持續機器人傳訊。群組聊天、主題串…
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證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