GithubHelp home page GithubHelp logo

shopping-mall's Introduction

shopping-mall

用于学习seata与其他分布式相关技术项目

当前已整合了一些spring cloud 的基本组件 与 seata,但是有一个问题使用 seata 后不能做批量的更新与插入数据处理,暂时还不知道为啥,后续的提交会做好相应的修改。

如果项目中出现了 putdata 这个模块的引用,请自行删除即可,因为该模块是我自己用于获取基础数据用的,为防止被乱用就没做上传处理

今天(2019-12-29)加了 Seata官方 的钉钉群,向群里的开发者请教了下,回复为:当前版本不支持以分号分割的批量更新,目前支持的批量更新为在程序中做循环更新处理,分号分割的批量更新会在后续的版本中实现

网关更新

此前的接口未通过网关来进行访问,是在 consumer 那个模块通过 Feign 直调的接口,目前使用了网关,这样让 consumer 这个模块显得有些多余,可以直接把它移除,当然在网关中我也配置了 Swagger,除了 consumer 把其他几个项目启动后,再启动 shopping-mall-gateway 项目,成功后再访问 swagger-ui 即可,网关配置 swagger 的参考了 该项目 的实现方式与源码

RocketMQ 更新

整合了RocketMQ,在订单支付的流程中更新仓库库存与库存存量时使用了二段式提交的事务消息,修改消费数据方式,由消费方主动提交消费完成的动作,更新 broker 中的 offset,以此确保消费端消费数据异常,即 MQ 数据在被消费后处理异常,无法再次消费,导致消费数据丢失。

Feign 更新

所有通过feign接口调用的内容都需要通过网关走rest服务,添加熔断接口实现(这也是个坑,调用时间长也会触发熔断,即使接口未出现问题,当然这也是熔断的作用,如果对性能无太大要求的话也可以不使用熔断处理)

shopping-mall's People

Contributors

wangj3081 avatar

Watchers

James Cloos 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.