EasyFK
Build Once, Reuse Everywhere
EasyFK is never a patchwork of open-source libraries—it is an enterprise Java foundation built with production-grade encapsulation, validation, and deep extensions. Beyond native Redis / Kafka multi-datasource routing for complex workloads, it deeply wraps Chronicle, Aeron, and Raft to power low-latency, high-stability core trading systems, paired with dedicated AI Skills that supercharge engineering velocity.
Multi-Datasource · Chronicle · Aeron · Raft
Standards · Framework · Reverse · Orchestration
ORM / MQ / Cache / Distributed Locks / Governance
3-Tier Blueprint · Auto-Config · Production Tuning
3 Architectures via Config · Zero Version Conflicts
WHY EASYFK
Why Teams Need EasyFK
Every Java team hits the same foundational pitfalls—EasyFK eliminates them once and for all.
CORE VALUES
Core Values
Build once, reuse everywhere. Turn infrastructure into standardized building blocks any service can compose on demand.
From "Pouring Concrete" to "Picking Modules"
Add a handful of dependencies and your infrastructure is ready—ship business features on Day 1.
One Standard Across Every Repo, Zero Friction
Unified response wrappers, exception handling, RBAC security models, and logging. Engineers and components move across projects effortlessly.
Battle-Tested, Production-Safe Foundations
Multi-level reflection caching, zero-stacktrace business exceptions, automatic thread-context propagation & cleanup, plus built-in API signing and anti-replay protection.
Upgrade Once, Benefit Everywhere
When the foundation ships performance gains, security patches, or stack upgrades, every service inherits them with a single version bump.
Compose on Demand, Zero Bloat
Import only what you need—every module is standalone, keeping services lean with zero redundant dependencies.
HIGH PERFORMANCE & DEEP EXTENSION
Beyond Integration: High-Stability, Low-Latency Architecture
Not a loose bundle of open-source starters—deeply encapsulated, stress-tested, and extended for real commercial workloads.
Native Redis / Kafka Multi-Datasource Encapsulation
Not a thin Spring Starter wrapper—EasyFK ships custom multi-datasource routing and connection pool governance. Connect multiple Redis or Kafka clusters in one config and switch seamlessly via annotations or API.
Production-Grade Extensions, Not Open-Source Glue
Over 90% of components are deeply encapsulated, load-tested, and hardened: multi-level cache consistency, reentrant fair distributed locks, zero-stacktrace business exceptions, and full-link TraceId propagation.
One Foundation From Back-Office Apps to Core Trading
Pull lightweight modules for standard CRUD apps; unlock off-heap caches, lock-free ring buffers, Aeron, and Raft when building high-concurrency, low-latency trading or risk engines.
easyfk:
redis: # Native multi-cluster Redis
primary: order-cache
sources:
order-cache: { host: 10.0.1.10, db: 0 }
session-pool: { host: 10.0.1.11, db: 2 }
kafka: # Native multi-cluster Kafka
sources:
trade-cluster: { bootstrap: 10.0.2.10:9092 }
audit-cluster: { bootstrap: 10.0.2.20:9092 }
// Route by datasource name — zero pool boilerplate
redisManager.use("session-pool").set(key, val);
kafkaManager.use("trade-cluster").send(msg);High-Performance · Low-Latency Component Matrix
Caffeine
L1 In-Process CacheUltra-high-throughput local cache integrated with EasyFK's multi-level cache layer for automatic cross-node invalidation and stampede protection.
- Built-in hot-key local buffering dramatically cuts Redis cluster network overhead
- Automatic consistency sync with Redis L2 out of the box—no manual Pub/Sub wiring
- Ideal for high-frequency dictionaries, tenant configs, and hot product pages
Click or hover to inspect tiers
Auto-cycling · 1 / 6COMPONENT LIBRARY
40+ Pluggable Technical Components
90%+ deeply encapsulated—not thin API wrappers, but production-ready capabilities out of the box.
Persistence & Data Access
Three ORMs share one unified interface for zero-diff swaps; each storage engine is independently wrapped with sharding support.
Messaging & Caching
Unified messaging model swaps across three MQ engines with zero code edits; compose multi-level and off-heap caches on demand.
Governance & Infrastructure
Service discovery, rate limiting, distributed transactions, WebSocket, distributed locks, and job scheduling ready out of the box.
Unified Above, Swappable Below
Click any underlying engine to see the dependency swap—your business code never changes a single line
<dependency>
<groupId>com.mcst</groupId>
<artifactId>orm-mybatis</artifactId>
</dependency>
<!-- Active engine: MyBatis-Plus -->
<!-- Version managed centrally by easyfk-dependencies -->// Program against EasyFK's unified interface
public interface OrderRepository
extends IBaseRepository<Order, Long> {
}
// When swapping to MyBatis-Plus
// Service & Repository stay 100% untouched
orderRepository.findPage(queryParam);AI DEVELOPMENT SKILL
Complete AI Skills—Skip Manual Doc Diving
EasyFK packs rich capabilities that take too long to browse page by page. Dedicated AI Skills arm your AI with every convention and manual on Day 1.
easyfk-ai-skills/
├── dev-standard-skill/ # Dev standards (prevent tech debt)
│ ├── code-standards.md # Production code conventions
│ └── project-docs.md # Enterprise documentation specs
├── framework-skill/ # Full ecosystem component manuals
│ ├── components-manual.md# 40+ component & module guides
│ └── high-perf-stack.md # Zero wheel-reinvention or guesswork
├── reverse-skill/ # Deep legacy codebase analysis
│ └── audit-and-docs.md # Architecture, flow & risk audit
└── generator-skill/ # CLI code generator automation
└── efg-cli-workflow.md # Auto-scaffold & incremental genDev Standard Skill & Framework Skill
Guides AI to write clean, maintainable code and enterprise docs on EasyBuild while supplying complete component manuals—no wheel-reinvention, no prompt-roulette.
Reverse Skill (Legacy Codebase Audit)
Performs a thorough reverse-engineering pass over legacy repos—covering docs, code, architecture, business flows, and hidden risks—so teams gain full visibility fast.
Generator Skill (CLI Auto-Scaffolding)
Lets AI invoke the EasyBuild code generator via CLI to scaffold project structures and baseline code accurately—skipping manual commands.
CORE FRAMEWORK
Core Base Framework · 3-Tier, 12-Module Blueprint
12 cleanly decoupled modules across three architectural tiers—import on demand with zero bloat and instant auto-configuration.
Entry & Security
Entry & Security
Unified ingress traffic & routing gateway
Auto-config for 5 distinct Web scenarios
3-tier security model & multi-tenant RBAC
Domain & RPC
Domain & RPC
Service/interface split & SaaS isolation
Dubbo + Spring Cloud dual-protocol RPC
Unified CRUD & dynamic query builder
Core & Runtime
Core & Runtime
Response wrappers, zero-stacktrace errors & context
Multi-level caching & node consistency
Automatic full-link TraceId propagation
Thread pool governance & context relay
Unified high-perf async queue abstraction
High-speed binary & JSON serialization
Zero-Config Activation
Spring Boot AutoConfiguration activates on import—no manual bean registration.
Compose on Demand
Import only the modules you need—zero unused code, lean service footprints.
Production-Tuned Core
Zero-stacktrace business errors, multi-level reflection caching, and full-link TraceId.
CODE GENERATOR
Java Backend Code Generator
Define your database schema and let the generator handle the rest—from project skeleton to full business layers in minutes.
Full-Layer Output in Seconds
Generates 8–15 Java classes per table from Entity to Controller, with smart type mapping and annotation-aware business logic.
Switch 3 Architectures via Config
Single → Microservice → SMART with a one-line config change. Supports 22 databases and safe incremental regeneration.
Built-In Standards by Default
60+ curated templates enforce consistent naming, layering, and style—your engineering standards execute automatically.
SINGLE
Monolith
Fast prototyping and lean deployment for small-to-mid projects
MICROSERVICE
Microservice
Standard Spring Cloud service boundaries and governance
SMART
Multi-Stack Microservices
Spring Cloud + Dubbo dual protocols built for high concurrency
"Let machines handle repetition so engineers can focus on creation."
DEPENDENCY GOVERNANCE
Unified Dependency Governance
Import one BOM dependency and leave version conflicts and fragmented upgrades behind.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.mcst</groupId>
<artifactId>easyfk-dependencies</artifactId>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- No version declarations needed below -->
<dependencies>
<dependency>
<groupId>com.mcst</groupId>
<artifactId>orm-mybatis</artifactId>
</dependency>
<dependency>
<groupId>com.mcst</groupId>
<artifactId>db-redis</artifactId>
</dependency>
</dependencies>Zero Dependency Conflicts
Every dependency is systematically compatibility-tested with conflicts excluded—never debug jar hell again.
Curated, Reliable Versions
Aligned with official compatibility matrices and verified in real production deployments—stability first.
Upgrade Once, Roll Out Globally
Collapse per-repo, per-library upgrades into a single version bump—fast, predictable, and low-risk.
Do the Repetitive Work Once—Do It Right
Then let every project share the payoff. With your foundation ready, scaffold standard repos in seconds or reuse 21+ open-source business modules.