Coder Social home page Coder Social logo

seckill's Introduction

实现了简单的商品秒杀功能的project(SecKill)

(该项目是为了学习spring boot技术以及高并发,所以只包含用户、商品、订单三个模块)

技术栈

  • 前端:Thymeleaf渲染(部分接口前后端分离) + Bootstrap + jQuery(及其简单的页面,没有难度)
  • 后端:Spring Boot 1.5.9RELEASE + Mybatis
  • 数据库:MySQL + Redis + druid数据库连接池
  • 消息队列:RabbitMQ
  • 开发环境:Intellij IDEA 2017.2
  • 构建工具:Maven 3.5

开始使用

  • IDEA打开工程, 修改application.properties文件,按照本地主机的配置进行
  • 本地MySQL新建数据库seckill,创建用户:seckill,密码:seckill,执行seckill.sql文件

高并发优化的路线

  • 页面优化路线:
    • 页面缓存
    • 页面静态化(前后端分离)
    • 静态资源优化(none)
    • CDN(none)
  • 后端优化路线:
    • NoSQL缓存(Redis)
    • 读写分离
    • 异步消息处理(RabbitMQ)
    • 应用降级(关闭非必须功能)
    • 接口限流防刷(工程中使用自定义注解以及拦截器实现) 樱木

seckill's People

Contributors

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