MCPcopy Create free account
hub / github.com/Vanzaseses/hmdp

github.com/Vanzaseses/hmdp @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,035 symbols 2,733 edges 146 files ⚖ Apache-2.0 226 documented · 22% updated 2y ago★ 78

Browse by type

Functions 893 Types & classes 142
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

hmdp

黑马点评项目完整代码,包含前后端

技术架构: Redis + Spring Boot + MySQL + RabbitMQ + Mybatis-plus + Hutool + JWT

实现了短信验证码登录、查找最近店铺、优惠券秒杀、关注推送、发表点评的完整业务流程

使用redis+JWT解决了在集群模式下的Session共享问题,使用拦截器实现用户的登录校验和Token刷新

使用Cache Aside模式解决数据库与缓存一致性问题

使用redis对高频访问的信息进行缓存预热,用缓存空值解决缓存穿透,用随机ttl解决缓存雪崩,用逻辑过期解决缓存击穿

使用lua脚本以及redis单线程特性解决秒杀问题,使用乐观锁解决超卖问题

使用redis分布式锁解决了在集群模式下一人一单的线程安全问题,使用RabbitMQ实现异步下单

使用ZSet数据结构实现了点赞排行榜功能,用set以及集合运算实现关注和共同关注功能

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 718
Method 175
Class 100
Interface 42

Languages

TypeScript69%
Java31%

Modules by API surface

nginx-1.18.0/html/hmdp/js/vue.js417 symbols
nginx-1.18.0/html/hmdp/js/element.js275 symbols
nginx-1.18.0/html/hmdp/js/axios.min.js22 symbols
NoteFromVisit/src/main/java/com/sengang/service/impl/ShopServiceImpl.java9 symbols
NoteFromVisit/src/main/java/com/sengang/service/impl/BlogServiceImpl.java9 symbols
NoteFromVisit/src/main/java/com/sengang/controller/BlogController.java9 symbols
NoteFromVisit/src/main/java/com/sengang/service/impl/VoucherOrderServiceImpl.java8 symbols
NoteFromVisit/src/main/java/com/sengang/controller/UserController.java8 symbols
NoteFromVisit/src/main/java/com/sengang/utils/CacheUtils.java7 symbols
NoteFromVisit/src/main/java/com/sengang/service/BlogService.java7 symbols
hm-dianping/src/main/java/com/hmdp/controller/UserController.java6 symbols
hm-dianping/src/main/java/com/hmdp/controller/ShopController.java6 symbols

Datastores touched

(mysql)Database · 1 repos
hmdpDatabase · 1 repos

For agents

$ claude mcp add hmdp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page