1 Star 0 Fork 9

steven.mo / mrdeer_iot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

多租户 SaaS 物联网 IoT 微服务 开放平台

Building Status Coverage Status Downloads SpringCloud

简称MrDeer-IoT是基于Ant-Design+springCloud Alibaba的企业级微服务框架(用户权限管理,设备控制管理,配置中心管理,应用管理,....),其核心的设计目标是分离前后端,快速开发部署,学习简单,功能强大,提供快速接入核心接口能力,其目标是帮助企业搭建一套类似小米IoT能力开放平台的框架;

  • 基于前后端分离的企业级微服务架构

  • 兼容 Coverage Status & SpringCloud

  • 优化内部实现,实现API调用的统一出口和权限认证授权中心

  • 提供完善的企业微服务流量监控,日志监控能力

  • 通用的微服务架构应用非功能性(NFR)需求,更容易地在不同的项目中复用

  • 提供完善的压力测试方案

  • 提供完善的灰度发布方案

  • 提供完善的微服务部署方案

前端项目地址

https://gitee.com/updateX/mrdeer_iot_ui.git

系统架构

输入图片说明

开发手册

欢迎进群(大佬云集)

技术介绍

功能介绍

  • 统一安全认证中心
    • 支持+模式登录
    • 支持用户名、密码加图形验证码登录
    • 手机校验码登录
    • 支持第三方系统单点登录
    • SaaS多租户管理
  • 微服务架构基础支撑
    • 服务注册发现、路由与负载均衡,采用作为注册中心
    • 服务熔断与限流
    • 统一配置中心
    • 统一日志中心
    • 分布式锁
    • 分布式任务调度器
  • 系统服务监控中心
    • 服务调用链监控
    • 应用吞吐量监控
    • 服务降级、熔断监控
    • 微服务服务监控
  • 能力开放平台业务支撑
    • 网关基于应用方式API接口隔离
    • 网关基于应用限制调用次数
    • 下游服务基于RBAC权限管理,实现细粒度控制
    • 代码生成器中心
    • 网关聚合服务内部Swagger接口文档
    • 统一跨域处理
    • 统一异常处理
  • docker容器化部署
    • 基于rancher的容器化部署
    • 基于docker的elk日志监控
    • 基于docker的服务动态扩容

IoT 技术窥探

MQTT发布/订阅架构

MQTT与HTTP及其请求/响应范例相比,该协议使用 发布/订阅体系结构。发布/订阅是事件驱动的,可以将消息推送到客户端。中央通信点是MQTT代理,它负责调度发送者和接受者之间的所有消息。
向代理发布消息的每个客户端都在消息中包含一个主题。主题就是代理的路由信息。
每个想要接收消息的客户端都订阅某个主题,并且代理将具有匹配主题的所有消息传递给客户端。
因此,用户不必彼此了解,他们只通过主题进行通信。该架构支持高度可扩展的解决方案,而不依赖于数据生产者和数据使用者。

与HTTP的区别在于客户端不必提取所需的信息,但是在有新内容的情况下,代理会将信息推送到客户端。
因此,每个MQTT客户端都与代理具有永久打开的TCP连接。
如果连接在任何情况下中断,MQTT代理可以缓冲所有消息,并在它重新连击时将他们发送到客户端。
MQTT中用于分派消息的核心概念是主题。主题是一个简单的字符串,可以有更多的层次结构级别,用斜杠分隔。用于发送起居室的温度数据的示例主题可以是 房屋/起居室/温度。
一方面,可以断可以订阅确切的主题;
另一方面,使用通配符
    对/房屋/+/温度 的订阅将导致所有消息发送到先前提到的主题 房屋/起居室/温度以及在起居室的地方具有任意值的任何主题,例如 房屋/厨房/温度。加号是单级通配符,只允许一个层次结构的任意值。
    如果需要订阅多个级别,例如订阅整个子树,还有一个多级通配符(#)。它允许订阅所有底层层次结构级别。比如 房子/# 就会订阅以house开头的所有主题

MQTT控制报文结构

|- 结构 |-备注 |- Fixed header |- 固定报文,所有控制报文都包含Nett |- Variable header|- 可变报文,部分控制报文包括 |- Payload |- 有效载荷,部分控制报文包含

Netty

Netty是一个异步事件驱动的网络应用程序框架,用于快速开发可维护的高性能协议服务器和客户端
Netty是一个NIO客户端服务器框架,可以快速轻松地开发协议服务器和客户端等网络应用程序。它极大地简化了TCP和UDP套接字服务器等网络编程。
“快速简便”并不意味着最终的应用程序会收到可维护性或者性能问题的影响,Netty经过精心设计,具有丰富的协议,如FTP,SMTP,HTTP以及各种二进制和基于文本的传输协议。
因此,Netty成功地找到了一种在不妥协的情况下实现易于开发,性能,稳定性和灵活性的方法。

Kafka

Apache Kafka是一个分布式流媒体平台
  • 流媒体平台有三个关键功能 1.发布和订阅记录流,类似于消息队列或者企业消息传递系统 2.以容错的持久方式存储记录流 3.记录发生时处理流
  • Kafka通常用于两大类应用 1.构建可在系统或应用程序之间可靠获取数据的实时流数据管道 2.构建转换或相应数据流的实时流应用程序

能力开放管理平台

容器化部署

APM监控

系统监控

灰度发布功能演示

用户权益

  • 允许免费用于学习、毕设、公司项目、私活等。

禁止事项

  • 代码50%以上相似度的二次开源。
  • 注意:若禁止条款被发现有权追讨10000的授权费。
GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

IOT 物联网平台 SpringCloud 微服务 展开 收起
Java
LGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/steven.mo/mrdeer_iot.git
git@gitee.com:steven.mo/mrdeer_iot.git
steven.mo
mrdeer_iot
mrdeer_iot
master

搜索帮助