展示HN:我构建了一个自托管的链接缩短器,并实现了速率限制功能。
链接 - <a href="https://link6ync.app" rel="nofollow">https://link6ync.app</a><p>提交的那一刻,请粘贴类似这样的内容(根据你量身定制的示例):<p>嗨,HN<p>我构建这个项目是为了学习,探索大规模的速率限制、分析和滥用防范。<p>技术栈:<p>Next.js(应用路由)<p>MongoDB用于数据持久化<p>Redis用于速率限制和点击计数<p>边缘中间件用于快速重定向<p>有趣的挑战:<p>在不减慢重定向速度的情况下防止链接滥用<p>在没有第三方跟踪器的情况下设计分析<p>高写入量的高效处理<p>这个项目还处于早期阶段,尚未准备好投入生产,我非常希望能得到关于架构和你发现的任何错误的反馈。
查看原文
link - <a href="https://link6ync.app" rel="nofollow">https://link6ync.app</a><p>The moment you submit, paste something like this (example tailored to you):<p>Hi HN<p>I built this as a learning project to explore rate limiting, analytics, and abuse prevention at scale.<p>Tech stack:<p>Next.js (App Router)<p>MongoDB for persistence<p>Redis for rate limiting and click counters<p>Edge middleware for fast redirects<p>Interesting challenges:<p>Preventing link abuse without slowing redirects<p>Designing analytics without third-party trackers<p>Handling high write volume efficiently<p>It’s early and not production-ready, I’d really appreciate feedback on the architecture and any mistakes you spot.