摘要
针对抢红包系统的“短时间、高并发、高性能”需求,设计了一种解决方案,实现技术选用业界流行的SSM框架达到高扩展性,选用Bootstrap框架兼容多终端,使用Redis缓存达到高性能,使用队列应对高并发,并重点分析与设计了发红包与抢红包的流程及红包分配算法。最后,测试与应用实践表明基于内存的高性能抢红包应用设计的有效性,本方案对于解决瞬时高并发的需求有一定的参考价值。
Aiming at the requirements of red envelope grabbing system of “short time,high concurrency,high performance”,this paper designs a kind of solution,realizes that the technology uses the industry popular SSM framework to achieve high scalability.It uses the Bootstrap framework which is compatible with multiple terminals,uses Redis cache to achieve high performance,uses the queue response to high concurrency,and focuses on analyzing and designing the flow and red envelope allocation algorithm of sending red envelopes and grabbing red envelopes.Finally,the test and application practice show that the effectiveness of memory-based high performance red envelope grabbing application design.This scheme has certain reference value for solving the requirements of instantaneous high concurrency.
作者
刘磊
陈华溢
姚文辉
LIU Lei;CHEN Huayi;YAO Wenhui(Guangdong Open University(Guangdong Polytechnic Institute),Guangzhou 510091,China)
出处
《现代信息科技》
2022年第14期16-20,25,共6页
Modern Information Technology
基金
广东省教育厅普通高校青年创新人才项目(2019KQNCX223)
广东开放大学校级科研项目(YB1915)。
关键词
抢红包系统
高性能
REDIS
原子操作
红包算法
并发限流
集群部署
red envolope grabbing system
high performance
Redis
atomic operation
red envelope algorithm
concurrent limited current
cluster deployment