Code Monkey home page Code Monkey logo

seckill's Introduction

基于 SpringBoot+Mybatis+Redis+RabbitMQ 秒杀系统

开发工具

idea 2017.2

开发环境

JDK Maven Mysql SpringBoot redis RabbitMQ
1.8 3.2.2 5.7 1.5.10.RELEASE 3.2 4.X

项目启动说明

1、启动前,请配置 application.properties 中相关redis、mysql、rabbitmq地址。

2、登录地址:http://localhost:8888/page/login

3、商品秒杀列表地址:http://localhost:8888/goods/list

其它说明

1、数据库共有一千个用户左右(手机号:从18077200000~18077200998 密码为:123456),为压测准备的。(使用 cn.hfbin.seckill.util.UserUtil.java该类生成的,生成token做压测也是在此类里面)

2、此项目共有两个分支,master分支只是完成了秒杀的所有业务逻辑功能,并没有优化。V2.0分支做了优化如下:

1)、页面缓存、商品详情静态化、订单静态化(感兴趣可以把所有页面都做静态化)
2)、加入消息队列RabbitMQ,对秒杀接口进行优化。
3)、隐藏秒杀接口地址
4)、接口限流防刷
5)、解决超卖问题

页面截图

登录页 123 商品列表情页 123 商品详情页 123 订单详情页 123

博客地址:https://blog.csdn.net/qq_33524158

seckill's People

Contributors

hfbin avatar

Stargazers

一脸麻花 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.