首页|基于小程序的社交平台设计与实现

基于小程序的社交平台设计与实现

扫码查看
针对当下人们倾向线上交流的现状,提出设计一款基于小程序的社交平台,以满足移动端随时随地进行多样化的社交需求.系统使用SpringBoot框架开发数据服务端;使用Shrio进行访问权限的控制、JSON Web Token和SHA-256 哈希算法对用户身份信息进行加密;使用MySQL数据库进行关系型数据库管理、Redis缓存存储用户Token;使用集成GoEasy的API实现用户一对一实时通信、系统消息实时推送的功能.结果表明:在模拟用户数为 100、1 000和10 000时出现了0%的异常率,系统每秒吞吐量分别为98.5、495.8、621.0;在模拟用户数为20 000时出现了0.22%的异常率,系统每秒吞吐量达到653.5.总的来说,各项性能指标表现良好,可以处理响应10 000以上用户的请求.
Design and Implementation of Social Platform Based on Mini Program
Aiming at the current situation that people tend to communicate online,it is proposed to design a social platform based on the mini program to meet the diversified social needs of mobile terminals anytime and anywhere.The system uses the SpringBoot framework to develop the data server,and uses Shrio to control access rights,JSON Web Token and SHA-256 Secure Hash algorithm to encrypt user identity information.It uses MySQL database for relational database management,uses Redis cache to store user Token,and uses the API that integrates with GoEasy to achieve the functions of one-to-one real-time communication of users and real-time push of system messages.The results show that the abnormal rate is 0%when the number of simulated users is 100,1 000,and 10 000,the system throughput per second is 98.5,495.8,621.0 respectively.When the number of simulated users is 20 000,the abnormal rate is 0.22%,and the system throughput reaches 653.5 per second.In general,the performance of various performance indicators is good,and it can handle requests from more than 10 000 users.

social platformmini programSpringBootthroughput

彭华海、田秀云

展开 >

广东海洋大学 电子与信息工程学院,广东 湛江 524088

社交平台 小程序 SpringBoot 吞吐量

2024

现代信息科技
广东省电子学会

现代信息科技

ISSN:2096-4706
年,卷(期):2024.8(22)