Git Product home page Git Product logo

dingdong-party-api's Introduction

叮咚党建(分布式架构)

结构解释

  • common:公共包
    • common-utils:公共工具包
      • 接口返回封装
      • 异常输出
      • http 请求(请求微信接口)
      • md5 加密(密码加密保存数据库)
      • 获取随机数
    • service-base:基础配置
      • mybatis-plus 分页配置
      • redis 配置
      • swagger 配置
      • 自定义异常处理
      • 全局异常处理封装
      • mybatis-plus 自动注入
      • 格式化字符串

+ infrastructure:基础服务 + apigateway:api 网关 + 拦截没 token 请求 + 开放 login 请求
+ service:业务包 + service-eureka:注册中心集群(两个,主从结构) + service-eureka-host:主机 + service-eureka-slave:从机,当主机宕机时顶替 + service-user:用户业务 + service-admin: + 管理员业务 + security 身份认证,权限拦截,同时只能登录一次

运行流程:

  1. 启动 redis
  2. 启动注册中心
  3. 启动相关包
  4. 启动网关

访问地址

网关地址

localhost:81/api/dingdong-party/v1

网关 swagger: localhost:81/api/dingdong-party/v1/doc.html

注册中心

localhost:18001/eureka 或 localhost:18002/eureka

访问中心地址:localhost:18001/

活动管理

localhost:8001/

用户管理

localhost:8002/

后台管理

localhost:8003/

swagger 地址

http://localhost:port/api/dingdong-party/v1/doc.html

dingdong-party-api's People

Contributors

marin-man avatar retraci avatar

Stargazers

 avatar

dingdong-party-api's Issues

【改进】eureka 登录安全校验

问题描述:
现在的 eureka 访问页面没有设置账号密码,而是通过防火墙不暴漏端口的方式拒绝外界访问。
改进:
设置账号和密码,允许外界访问

【改进】使用延迟队列修改活动状态

问题描述:
活动状态有:可报名,未开始,进行中,已截至等状态,现在是通过定时线程池来维护几个状态的改变。
改进:
通过 RocketMQ 延迟队列来维护状态的改变,保证服务宕机重启后,状态修改还能够继续进行。

【改进】Tomcat 调优

问题描述:
现在的项目的 tomcat 使用默认配置,并没有根据项目的架构逻辑以及压测报告进行调优
改进:
在配置文件中加上 tomcat 连接配置

【改进】entity 服务分块

问题描述:
当下的架构是以微服务的方式,每个模块引用了其他模块的 entity。
改进:
将全部的 entity 整合成一个模块,并打成 jar 包给其他模块引用。

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.