{"id":37034322,"url":"https://github.com/cdy816/mars","last_synced_at":"2026-01-14T04:01:31.855Z","repository":{"id":44203708,"uuid":"109787572","full_name":"cdy816/mars","owner":"cdy816","description":"Mars 数据库是一个集数据采集、存储、分析为一体的实时数据库","archived":false,"fork":false,"pushed_at":"2024-02-13T03:54:37.000Z","size":38306,"stargazers_count":60,"open_issues_count":6,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-11T08:20:41.720Z","etag":null,"topics":["database","gis-data","gis-database","iot","iot-database","realtime","realtime-database","sensor","sensor-database","sensor-monitor"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdy816.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-11-07T04:40:01.000Z","updated_at":"2025-10-27T12:23:52.000Z","dependencies_parsed_at":"2024-02-13T04:45:44.037Z","dependency_job_id":null,"html_url":"https://github.com/cdy816/mars","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/cdy816/mars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdy816%2Fmars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdy816%2Fmars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdy816%2Fmars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdy816%2Fmars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdy816","download_url":"https://codeload.github.com/cdy816/mars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdy816%2Fmars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","gis-data","gis-database","iot","iot-database","realtime","realtime-database","sensor","sensor-database","sensor-monitor"],"created_at":"2026-01-14T04:01:31.275Z","updated_at":"2026-01-14T04:01:31.851Z","avatar_url":"https://github.com/cdy816.png","language":"C#","readme":"\n **物联网四板斧：[Mars 实时库](https://github.com/cdy816/mars) 、设备采集平台[Spider](https://github.com/cdy816/Spider) 、跨平台界面解决方案[Chameleon](https://github.com/cdy816/Chameleon)、数据分析报警引擎[Ant](https://github.com/cdy816/Ant)**\n \u003cbr /\u003e\n \u003cbr /\u003e\n\u003c!--[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![Apache License][license-shield]][license-url]\n\u003cbr /\u003e\n[![star](https://gitee.com/chongdaoyang/mars/badge/star.svg?theme=white)](https://gitee.com/chongdaoyang/mars/stargazers)\n[![fork](https://gitee.com/chongdaoyang/mars/badge/fork.svg?theme=white)](https://gitee.com/chongdaoyang/mars/members)\n--\u003e\n\u003c!-- PROJECT LOGO --\u003e\n\u003cdiv align=center\u003e\u003cimg src=\"https://gitee.com/chongdaoyang/mars/raw/master/Doc/Images/mrdbr.png\"\u003e\u003c/div\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n\n  \u003ch2 align=\"center\"\u003eMars 实时库\u003c/h2\u003e\n \n  \u003cp align=\"center\"\u003e\n    高性能、跨平台实时库!        \n    \u003cbr /\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n# mars/火星实时物联数据库\n\n Mars 数据库是一个集数据**采集**、**存储**、**分析**为一体的实时数据库。通过简单的可视化的配置，即可实现将工业现场的各种传感器接入、并进行记录或者进行数据逻辑处理、以及提供其他程序使用。\n Mars 数据库具有较高的性能，单机支持120万个传感器信号接入；Mars 2.0 分布式版本通过多机联网组成的集群，可以实现上千万的信号的接入。\n \n\n## 功能\n\n  Mars 数据库整个分成开发、运行2个部分，两者之间相互独立。数据库的开发用于管理数据库支持的变量、安全信息、接口信息等；数据库的运行负责数据的采集、存储、对外提供实时、历史数据服务。\n  \n  数据库开发支持分布式、多客户端、多数据库开发；开发客户端目前仅支持在Windows下运行的桌面客户端；服务器则是跨平台的，对外提供GRPC、Web API接口，方便第三方进行扩展接入。\n  \n  数据库运行支持跨平台、多种类型数据访问接口。支持有Web API、GRPC、自定义私有协议接口、OPC UA。数据库运行时采用数据库核心服务和API接口独立分开的多进程设计，API 服务和数据库核心功能可以在一台机器上也可以分别在不同的机器上；同时运行有多中类型的API接口、同一个种多个API接口同时运行，以支持多种、多个类型的客户端同时访问。\n  \n  数据库运行时不支持直接添加、删除、修改变量，但支持数据库的热启动（即在不退出重启的情况下，可以动态加载生效数据库库开发时新增、修改的变量，不支持删除的变量动态生效）。\n  \n  历史数据存储支持**无损压缩**、**死区压缩**、**斜率死区压缩（旋转门算法）** 3种压缩方式，同时支持**数据补录**功能（配合设备驱动实现当网络中断、又恢复后历史数据补录的功能）。\n  \n  历史数据支持定时导出功能，由于采用独立的文件存储设计，历史数据的导入，只要将相应的文件拷贝到历史存储目录即可。\n  \n  数据库支持双机冗余热备功能，历史数据路径存储到第三方的物理磁盘上，实时数据支持实时数据同步。\n\n## 应用方案\nMars数据库可以在不同的场景下使用，作为纯后端库的实时库模式、作为SCADA系统一部分的变量库模式，基于物联网的应用模式等。如下图：\n![Mars物联网应用](Doc/Images/Mars物联网应用.png)\n![Mars实时库模式](Doc/Images/Mars实时库模式.png)\n![Mars变量库应用](Doc/Images/Mars变量库应用.png)\n\n## 接口\n1. 基于消费端的上接口。基于**Web API**、**Grpc**、**OPC-UA**、**私有协议高速接口**等。\n2. 基于数据采集端的下接口 [Spider ](https://gitee.com/chongdaoyang/Spider)、第三方采集程序直接访问接口(DirectAccess)(Grpc,MQTT)\n\n## 关联项目\n1. 数据采集平台 [Spider ](https://gitee.com/chongdaoyang/Spider)\n2. 数据报警分析平台 [Ant ](https://gitee.com/chongdaoyang/Ant)\n\n## 运行环境\n系统采用.net 6 平台开发,依赖于.net 6 的**跨平台**性，可部署在window、Linux等操作系统中,也可以部署在Docker中。 \n\n## 开始使用\n\n### 安装\n\n 1. 安装.net 运行环境 [参考微软官方文档](https://dotnet.microsoft.com/download/dotnet/6.0)\n 2. 数据库安装。下载Mars 发部版本，将软件包解压到特定目录。\n\n\n## 帮助文档、接口开发文档\n1. [文档](https://github.com/cdy816/mars/tree/master/Doc)([Gitee地址](https://gitee.com/chongdaoyang/mars/tree/master/Doc))\n2. [Mar数据库应用结构](https://my.oschina.net/u/3520380/blog/4288058)\n\n## 版本\n[1.0 版本](https://gitee.com/chongdaoyang/mars/releases/tag/V1.0)\n\n## 路线图\n项目分成2个阶段：单机、分布式。\n\n1. 2023年10月份开始分布式版本的开发，预计2026年10月份能够推出分布式版本的2.0。分布式版本通过计算机集群、多级协作的方式，来实现更大规模、变化更加快速的传感器数据的接入。\n\n## 沟通交流\n\n1. 技术 QQ 群:950906131\n2. 开发者贡献群:601418190\n3. Email:cdy816@hotmail.com\n\n## 友情链接\n\n[IOT 采集平台](https://gitee.com/pnoker/iot-dc3)\n\n## 合作伙伴\n\n非常欢迎你的加入！提一个 [Issue](https://github.com/cdy816/mars/issues)  或者提交一个 Pull Request。\n\n感谢以下人员、公司的参与：\n\n  **宁波德沛数据**\n  **lin**\n  **湖南大驰科技**  \n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/cdy816/mars.svg?style=for-the-badge\n[contributors-url]: https://github.com/cdy816/mars/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/cdy816/mars.svg?style=for-the-badge\n[forks-url]:https://github.com/cdy816/mars/network/members\n[stars-shield]: https://img.shields.io/github/stars/cdy816/mars.svg?style=for-the-badge\n[stars-url]:https://github.com/cdy816/mars/stargazers\n[issues-shield]: https://img.shields.io/github/issues/cdy816/mars.svg?style=for-the-badge\n[issues-url]:https://github.com/cdy816/mars/issues\n[license-shield]: https://img.shields.io/github/license/cdy816/mars.svg?style=for-the-badge\n[license-url]: https://github.com/cdy816/mars/blob/master/LICENSE\n[product-screenshot]:https://github.com/cdy816/mars/blob/master/Doc/Images/DbInStudio.png\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdy816%2Fmars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdy816%2Fmars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdy816%2Fmars/lists"}