Coder Social home page Coder Social logo

mall-1's Introduction

mall

采用消息队列解决高并发下单案例, 基于Java语言来开发(JDK1.8)

Features

  1. 采用微服务框架Spring Boot,Spring Cloud,消息队列RabbitMQ搭建解决高并发下单的案例.
  2. 集成Spring Cloud的Eureka注册中心,Config分布式配置中心,Ribbon和RestTemplate,Feign负载均衡组件,Hystrix熔断隔离限流降级组件,Zipkin链路跟踪组件等,提高调用服务的简便性.
  3. 订单服务采用数据库中间件Sharding-JDBC水平分表,读写分离,数据分片,解决数据库的吞吐量瓶颈问题,同时采用CQ两端架构上层代码分离[读写分离],解决复杂的业务逻辑,实现松耦合,可扩展性.
  4. 使用Redis高级客户端Redisson实现高效的分布式锁,解决下单超卖问题.
  5. 网关服务结合阿里巴巴分布式配置管理Nacos实现动态路由,即不重启网关服务动态的对应路由的配置和规则进行操作,同时高并发场景下支持服务限流,统一服务熔断.
  6. 集成高性能分布式事务开源框架Hmily,基于TCC[最终一致性]模式,保证不同服务调用之间的数据一致性问题.
  7. 基于Netty 4.x实现WebSocket长连接服务,支持在线聊天(群聊,私聊)功能,支持百度云LSS在线直播,支持高并发,高性能.
  8. 集成APM-Apache SkyWalking对调用进行分布式追踪、性能指标分析、应用和服务依赖分析,Java自动探针零侵入支持,遵循Tracing的Opentracing规范标准.
  9. 集成增强版Swagger-bootstrap-ui可视化界面可以快速体验.

架构图

  • 注:架构图中部分技术点还未对接,后续会陆续完成.

Prerequisite

  1. JDK 1.8+
  2. Maven 3.5.x
  3. Git版本控制

Quick Start

  • Clone & Build

git clone https://github.com/fengjingwei/mall.git

cd mall

mvn clean install -DskipTests -U

  • execute sql

https://github.com/fengjingwei/mall/blob/master/sql/mall_create_tables.sql

Support

  • 如有任何问题欢迎微我

mall-1's People

Contributors

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