Codync
免费开源的 1:1 Grok Bot 与 Muse 替代方案。可在 iPhone、Mac 或 Linux 桌面上将 Claude 代码、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