Show HN: 我搭建了一个带速率限制的自托管短链接服务
1 分•作者: Omakidx•6 个月前
链接 - <a href="https://link6ync.app" rel="nofollow">https://link6ync.app</a>
提交后,请粘贴类似这样的内容(根据您的实际情况修改):
Hi HN
我将其作为一个学习项目,用于探索大规模的速率限制、分析和滥用预防。
技术栈:
Next.js (App Router)
MongoDB 用于数据持久化
Redis 用于速率限制和点击计数
Edge 中间件用于快速重定向
遇到的有趣挑战:
在不降低重定向速度的前提下,防止链接滥用
在没有第三方跟踪器的情况下设计分析系统
高效处理高写入量
项目还处于早期阶段,尚未准备好用于生产环境。我非常欢迎大家对架构提出反馈,并指出任何错误。
查看原文
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.