What’s New in Mica 2.4.5? Explore the Latest Microservice Components and Metrics
This article introduces the mica microservice component suite, details version changes, lists the v2.4.5 update highlights—including new cache, metrics, and logging modules—and showcases the expanded mica‑metrics for Druid and Undertow as well as the broader mica ecosystem.
1. mica (Microservice Component Set)
micais a collection of microservice components designed to be plug‑and‑play, simplifying usage and reducing pitfalls. Over 40 components are available, many already integrated.
2. Version Information
Note: Starting from 2.4.5 the GA suffix was removed. The mica‑v2.0 branch only receives bug fixes, no new features.
Latest releases:
2.4.5 – mica 2.4.x, Spring Boot 2.4.x, Spring Cloud 2020
2.1.1‑GA – mica 2.0.x~2.1.x, Spring Boot 2.2.x~2.3.x, Spring Cloud Hoxton
3. Changelog
v2.4.5 – 2021‑04‑28
Added mica-jetcache (secondary cache) module.
Added mica-lite module for Spring Boot projects.
Refactored UndertowMetrics in mica-metrics to expose more useful metrics.
Improved DruidMetrics in mica-metrics.
Renamed bean redisTemplate to micaRedisTemplate in mica-redis to avoid conflicts.
Adjusted cache handling in mica-captcha to prevent null references.
Optimized bean names and added generateBase64Vo method in mica-captcha.
Reduced reflection logs in mica-logging and added links to Alibaba Cloud and Tencent Cloud logging services.
Added base64 image method in mica-qrcode.
Added generic gateway code in mica-core.
Added CollectionUtil.computeIfAbsent to avoid JDK‑8 bug JDK‑8161372.
Changed default BLOCK_SIZE to 16 in Pkcs7Encoder for broader language compatibility.
Fixed multi‑cache‑name error in mica-caffeine.
Upgraded Spring Boot to 2.4.5.
Upgraded mica-weixin to 2.1.0, improving support for mica-caffeine.
4. mica‑metrics
mica‑metrics addresses the lack of monitoring metrics for Druid and Undertow, providing the first open‑source solution and planning upstream contributions.
4.1 Druid metrics
Before mica 2.4.5 only three JDBC‑related Druid metrics were available. The update adds ten new Druid metrics and multi‑datasource support.
4.2 Undertow metrics
Undertow metrics were completely refactored in mica 2.4.5, now collecting data for xwork, session, and connector, supporting 22 metrics.
5. mica ecosystem
mica-auto – Spring Boot starter: https://gitee.com/596392912/mica-auto
mica-weixin – JFinal Weixin Spring Boot starter: https://gitee.com/596392912/mica-weixin
mica-mqtt – MQTT component based on t‑io: https://gitee.com/596392912/mica-mqtt
Spring Cloud microservice HTTP/2 solution (h2c): https://gitee.com/596392912/spring-cloud-java11
mica-security – Permission system (Vue migration in progress): https://gitee.com/596392912/mica-security
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Architecture Diary
Committed to sharing original, high‑quality technical articles; no fluff or promotional content.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
