Git Product home page Git Product logo

goods-seckill's Introduction

goods-seckill

高性能电商秒杀解决方案

秒杀的特点

  • 大量用户在秒杀时间点发起购买请求,造成网站流量瞬间激增;
  • 秒杀的商品一般库存较少,只有少数用户能够购买,要控制好库存,防止超卖;
  • 整个系统关键在于支撑短时间内的高并发,降低数据库压力,业务和普通商品购买区别不大

秒杀系统性能瓶颈在于数据库无法处理并发访问

性能优化的关键在于数据库

思路:

  • 加缓存,减少数据库访问
  • 消息排队,并发缓冲
  • 异步下单,增强用户体验
  • 客户端轮询,判断是否抢购成功

对于项目部署架构的优化思路

多个服务器部署Tomcat,Nginx实现负载均衡,nginx高可用使用keepalived,一般百万级别并发的网站,这种架构足够了。

goods-seckill's People

Contributors

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