# micro **Repository Path**: Tifancy/micro ## Basic Information - **Project Name**: micro - **Description**: 致力于解决各类分布式基础设施或微服务应用的核心机制,包括数据模型、扩展机制等。 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 41 - **Created**: 2017-07-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微核心(Micro) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/yu120/micro/pulls) [![GitHub Watch](https://img.shields.io/github/forks/yu120/micro.svg?style=social&label=Watch)](https://github.com/yu120/micro) [![GitHub Star](https://img.shields.io/github/stars/yu120/micro.svg?style=social&label=Star)](https://github.com/yu120/micro) [![GitHub Fork](https://img.shields.io/github/forks/yu120/micro.svg?style=social&label=Fork)](https://github.com/yu120/micro) 致力于解决各类分布式基础设施或微服务应用的核心机制,包括数据模型、扩展机制等。 ## 开源产品介绍(微服务基础设施QQ交流群:191958521) + 配置中心(mconf) 1. GITHUB:https://github.com/yu120/mconf 2. 码云:https://git.oschina.net/yu120/mconf + 微核心(micro) 1. GITHUB:https://github.com/yu120/micro 2. 码云:https://git.oschina.net/yu120/micro + 微服务神经元(neural) 1. GITHUB:https://github.com/yu120/neural 2. 码云:https://git.oschina.net/yu120/neural + 微序列(sequence) 1. https://git.oschina.net/yu120/sequence ## 1 数据模型(CURL/EURL) 主要用于解决分布式基础组件中常用的数据模型定义。 + Perf:性能测试工具 + MultiHashMap:三元Map + ConcurrentHashSet:高并发安全Set + MicroId:基于AtomicLong算法的ID生成器 + Snowflake:基于Snowflake算法的高性能ID生成器,每秒钟可以生产超过四百万的有序无重复的ID(理论QPS:400w+/s) + URL:基于Dubbo(Dubbox)中URL进行升级后的数据模型 + SystemClock:高并发场景下System.currentTimeMillis()的性能问题的优化 ## 2 SPI机制(@Spi) + 支持SPI扩展(类似于JDK SPI的加强版) + 支持SPI扩展实现的排序 + 支持SPI扩展实现的分组 + 支持SPI扩展实现的单例/多例模式 ## 3 日志服务 基于Slf4j实现统一的日志门面服务。 ## 4 状态服务 + LoadStatusChecker:System Load Status + MemoryStatusChecker:Jvm Memory Status ## 5 线程池服务 + CachedThreadPool:缓存线程池 + FixedThreadPool:固定大小线程池 + LimitedThreadPool:自动增长线程池