# shortlink **Repository Path**: licanfu/shortlink ## Basic Information - **Project Name**: shortlink - **Description**: SaaS 短链接系统 是一个基于 Spring Boot + Spring Cloud Alibaba 的分布式短链接平台,提供短链接生成、访问统计、回收站管理及可视化后台功能。采用微服务架构和缓存优化、异步消息、分库分表、限流降级等技术,保障高并发与高可用。平台包含网关、核心业务、后台管理和前端控制台模块,帮助用户高效管理和分析短链接数据。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-04-15 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: SpringBoot, SpringCloud, Redis, MySQL, redisson ## README # 🔗 SaaS 短链接系统 🚀 **项目简介** SaaS 短链接系统是一个基于 **Spring Boot + Spring Cloud Alibaba** 的分布式短链接服务平台,旨在为企业和个人用户提供 **高效、安全、可扩展** 的短链接解决方案。 系统采用 **微服务架构**,支持 **短链接生成、访问统计、回收站管理、可视化后台管理** 等功能,并通过 **缓存优化、分布式锁、异步消息队列、分库分表、限流降级** 等技术保证 **高并发和高可用**。 平台包含 **网关、核心业务服务、后台管理服务、前端管理控制台** 等模块,能够帮助用户轻松管理短链接,跟踪点击数据,并进行多维度分析。 --- ## 📌 项目特色 - **微服务架构**:模块独立拆分,REST API 通信,服务治理由 Nacos 提供。 - **高并发支持**:布隆过滤器、Redisson 分布式锁、Redis 缓存提升系统性能。 - **数据分析**:支持 PV/UV/UIP、设备、浏览器、操作系统、地区等多维度统计。 - **分布式存储**:ShardingSphere 分库分表设计,支持大规模短链存储与查询。 - **异步解耦**:Redis Stream 用于访问日志的异步削峰与消费。 - **限流降级**:Sentinel 保证系统在流量高峰下的稳定运行。 - **SaaS 化**:面向企业和个人用户,支持自定义短链和多租户隔离。 --- ## 🌐 网页展示 #### 登录注册页面 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E6%B3%A8%E5%86%8C.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%99%BB%E5%BD%95.PNG) #### 平台首页 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E9%A6%96%E9%A1%B5.PNG) #### 短链创建 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E5%88%9B%E5%BB%BA.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E5%88%9B%E5%BB%BA%E6%88%90%E5%8A%9F%E5%90%8E%E9%A1%B5%E9%9D%A2.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E5%88%9B%E5%BB%BA%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9F%AD%E9%93%BE%E6%8E%A5%E6%9C%89%E6%95%88%E6%97%B6%E9%97%B4.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E5%88%9B%E5%BB%BA-%E6%89%B9%E9%87%8F%E5%88%9B%E5%BB%BA%E5%8A%9F%E8%83%BD.PNG) #### 短链跳转 点击短链后,跳转到对应的目标 URL。 #### 访问统计 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E8%AE%BF%E9%97%AE%E7%BB%9F%E8%AE%A11.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E8%AE%BF%E9%97%AE%E7%BB%9F%E8%AE%A12.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E8%AE%BF%E9%97%AE%E7%BB%9F%E8%AE%A13.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E7%9F%AD%E9%93%BE%E6%8E%A5%E8%AE%BF%E9%97%AE%E7%BB%9F%E8%AE%A14.PNG) #### 分组管理 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E5%88%86%E7%BB%84.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E5%88%86%E7%BB%842.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E6%9F%90%E4%B8%AA%E5%88%86%E7%BB%84%E4%B8%8B%E7%9A%84%E7%9F%AD%E9%93%BE%E6%8E%A5%E4%BF%A1%E6%81%AF%E6%B1%87%E6%80%BB.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E6%9F%90%E4%B8%AA%E5%88%86%E7%BB%84%E4%B8%8B%E7%9A%84%E7%9F%AD%E9%93%BE%E6%8E%A5%E5%8E%86%E5%8F%B2%E4%BF%A1%E6%81%AF%E8%AE%B0%E5%BD%95.PNG) #### 回收站管理 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E5%9B%9E%E6%94%B6%E7%AB%99.PNG) ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E5%9B%9E%E6%94%B6%E7%AB%992.PNG) #### 个人信息 ![](https://gitee.com/licanfu/short-link-project-image/raw/master/img/%E4%B8%AA%E4%BA%BA%E4%BF%A1%E6%81%AF.PNG) --- ## 📚 学习路径概览 - **基础阶段**:实现短链接生成与跳转,掌握缓存穿透、缓存击穿、缓存一致性解决方案。 - **进阶阶段**:拆分微服务模块,集成 Nacos、Gateway,实现服务治理与限流降级。 - **分布式阶段**:接入 ShardingSphere,实现数据库分库分表与分片键设计。 - **异步化阶段**:整合 Redis Stream 实现访问日志异步统计与多维度分析。 - **前端可视化阶段**:构建 Vue3 管理控制台,支持短链分组、回收站、数据可视化展示。 --- ## 🛠 技术栈 - **前端**:Vue 3, Vite, Pinia, Axios, Element Plus - **后端**:Spring Boot, Spring Cloud Alibaba, MyBatis Plus - **数据库**:MySQL 8, ShardingSphere - **缓存与队列**:Redis, Redis Stream, Redisson - **服务治理**:Nacos, Spring Cloud Gateway - **限流熔断**:Sentinel - **工具与辅助**:Docker, Maven, JetBrains IDEA 🛠 **技术栈概要** - **前端技术**:Vue 3、Vite、Axios、Element Plus、Pinia。 - **后端技术**:Spring Boot、Spring Cloud Alibaba、Redis、MySQL、Redisson、ShardingSphere。 - **分布式能力**:布隆过滤器、分布式锁、异步消息队列、分库分表、限流降级。 ##