GithubHelp home page GithubHelp logo

zclyne / lightning-deal Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 24.33 MB

This is a lightning-deal ecommerce website project.

License: Apache License 2.0

TSQL 5.21% Java 92.68% JavaScript 0.99% HTML 1.11%

lightning-deal's Introduction

秒杀电商平台

这是一个秒杀电商网站平台,提供用户注册、用户登录、商品下单、秒杀活动添加等功能

开发工具

IntelliJ IDEA

压力测试工具

Apache Jmeter

技术

前端:Bootstrap + jQuery

后端:Spring Boot + MyBatis + MySQL + RabbitMQ

中间件:Druid数据库连接池 + Redis缓存

服务器端:Nginx + Tomcat集群

性能优化策略

  1. 采用Tomcat集群,配置Nginx反向代理与负载均衡,使流量被均匀分摊给Tomcat服务器
  2. Nginx配置动静分离,进一步减小Tomcat服务器压力
  3. 使用Redis对商品详情页做缓存,降低MySQL数据库访问次数
  4. 使用Guava Cache配置本地热点缓存
  5. 使用RabbitMQ实现异步下单与数据库操作

当前优化结果

当前优化结果

使用方法

  1. 将本项目clone到本地,确保本地已经安装好MySQL数据库、Redis及RabbitMQ

  2. 执行项目根目录下的lightning_deal.sql,创建项目数据库,其中包含一些测试数据

    mysql -uroot -proot < ./lightning_deal.sql
  3. 使用IntelliJ IDEA打开该项目,并执行App.java中的main方法

  4. Tomcat已经启动在8081端口

lightning-deal's People

Contributors

zclyne avatar

Stargazers

 avatar  avatar

Watchers

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