Coder Social home page Coder Social logo

-'s Introduction

图书订阅管理系统

技术栈:SpringBoot+Mybatis+Redis+Rabbitmq+thymeleaf+docker

前端:使用thymeleaf模板引擎
后端:使用springboot框架
持久层:使用mybatis框架
中间件:使用rabbitmq进行订单消息实时推送;使用redis进行缓存(1.使用双重检测所防止缓存穿透的问题 2.用来减少与数据库之间的I/0操作)

业务流程如下:

消息中间件说明:

使用了rabbitmq的多播模式
用户下完订单,订单信息发送给消息队列,库存系统监听消息队列,如果有消息,取出消费,然后完成订单。然后,管理员发货,通过springboot的定时任务,定时刷新物流运输情况,等到达目的地,用户确认收货。(开多线程测试了并发情况下,尝试多人下订单时,消息队列的处理情况)

redis说明:

使用了RedisTemplate操作redis
1.使用了双重检测锁防止缓存穿透的问题
2.使用了双删延时策略解决缓存和数据库不一致的问题

项目运行效果

总结:

以后还会加入其他功能,继续完善,优化!

-'s People

Contributors

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