GithubHelp home page GithubHelp logo

seckill's Introduction

主要内容

  1. 项目框架搭建
    1. SpringBoot环境搭建
    2. 集成Thymeleaf,RespBean
    3. MyBatis
  2. 分布式会话
    1. 用户登录
      1. 设计数据库
      2. 明文密码二次MD5加密
      3. 参数校验+全局异常处理
    2. 共享Session
      1. SpringSession
      2. Redis
  3. 功能开发
    1. 商品列表
    2. 商品详情
    3. 秒杀
    4. 订单详情
  4. 系统压测
    1. JMeter
    2. 自定义变量模拟多用户
    3. JMeter命令行的使用
    4. 正式压测
      1. 商品列表
      2. 秒杀
  5. 页面优化
    1. 页面缓存+URL缓存+对象缓存
    2. 页面静态化,前后端分离
    3. 静态资源优化
    4. CDN优化
  6. 接口优化
    1. Redis预减库存减少数据库的访问
    2. 内存标记减少Redis的访问
    3. RabbitMQ异步下单
      1. SpringBoot整合RabbitMQ
      2. 交换机
  7. 安全优化
    1. 秒杀接口地址隐藏
    2. 算术验证码
    3. 接口防刷
  8. 主流的秒杀方案

软件架构

技术 版本 说明
Spring Boot 2.6.4
MySQL 8
MyBatis Plus 3.5.1
Swagger2 2.9.2 Swagger-models2.9.2版本报错,使用的是1.5.22
Kinfe4j 2.0.9 感觉比Swagger UI漂亮的一个工具,访问地址是ip:端口/doc.html
Spring Boot Redis

使用说明

登录页面:http://localhost:8080/login/toLogin

接口文档页面:http://localhost:8080/doc.html#/home

seckill's People

Contributors

yutao0310 avatar

Stargazers

 avatar  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.