Core Foundation · Enterprise Java

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.

Production-Grade Encapsulation
Redis / Kafka Multi-Datasource
Low-Latency High-Perf Stack
40+ Pluggable Components

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.

01

From "Pouring Concrete" to "Picking Modules"

Add a handful of dependencies and your infrastructure is ready—ship business features on Day 1.

02

One Standard Across Every Repo, Zero Friction

Unified response wrappers, exception handling, RBAC security models, and logging. Engineers and components move across projects effortlessly.

03

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.

04

Upgrade Once, Benefit Everywhere

When the foundation ships performance gains, security patches, or stack upgrades, every service inherits them with a single version bump.

05

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.

01/DEEP EXTENSION

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.

02/DEEP EXTENSION

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.

03/DEEP EXTENSION

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.

application-multi-source.ymlNative Multi-Source
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

Engineered for microsecond, high-concurrency core systems
COREEasyFK
Inner Ring · Nanosecond In-Process/Nanosecond Reads

Caffeine

L1 In-Process Cache

Ultra-high-throughput local cache integrated with EasyFK's multi-level cache layer for automatic cross-node invalidation and stampede protection.

Read Latency
< 100 ns
Coordination
L1 + Redis L2 Sync
  • 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 / 6

COMPONENT LIBRARY

40+ Pluggable Technical Components

90%+ deeply encapsulated—not thin API wrappers, but production-ready capabilities out of the box.

Persistence & Data Access

orm-mybatisorm-flexorm-hibernateorm-shardingdb-redisdb-mongodb-clickhouse

Three ORMs share one unified interface for zero-diff swaps; each storage engine is independently wrapped with sharding support.

Messaging & Caching

mq-kafkamq-rocketmq-rabbitcache-caffeinecache-rediscache-multchronicle-map

Unified messaging model swaps across three MQ engines with zero code edits; compose multi-level and off-heap caches on demand.

Governance & Infrastructure

nacossentinelseatawebsocketlock-redissonautoIdjob-xxldoc-knife4j

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

Select Underlying Engine
pom.xml
Swap This Dependency Only
<dependency>
  <groupId>com.mcst</groupId>
  <artifactId>orm-mybatis</artifactId>
</dependency>

<!-- Active engine: MyBatis-Plus -->
<!-- Version managed centrally by easyfk-dependencies -->
OrderService.java
Zero Business Code Edits
// 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/Skill Suite
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 gen
01

Dev 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.

02

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.

03

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.

L1

Entry & Security

Entry & Security

easyfk-gateway

Unified ingress traffic & routing gateway

easyfk-web

Auto-config for 5 distinct Web scenarios

easyfk-authority

3-tier security model & multi-tenant RBAC

L2

Domain & RPC

Domain & RPC

easyfk-service

Service/interface split & SaaS isolation

easyfk-remote

Dubbo + Spring Cloud dual-protocol RPC

easyfk-repository

Unified CRUD & dynamic query builder

L3

Core & Runtime

Core & Runtime

easyfk-core

Response wrappers, zero-stacktrace errors & context

easyfk-cache

Multi-level caching & node consistency

easyfk-log

Automatic full-link TraceId propagation

easyfk-thread

Thread pool governance & context relay

easyfk-queue

Unified high-perf async queue abstraction

easyfk-serializer

High-speed binary & JSON serialization

01

Zero-Config Activation

Spring Boot AutoConfiguration activates on import—no manual bean registration.

02

Compose on Demand

Import only the modules you need—zero unused code, lean service footprints.

03

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.

01

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.

02

Switch 3 Architectures via Config

Single → Microservice → SMART with a one-line config change. Supports 22 databases and safe incremental regeneration.

03

Built-In Standards by Default

60+ curated templates enforce consistent naming, layering, and style—your engineering standards execute automatically.

01

SINGLE

Monolith

Fast prototyping and lean deployment for small-to-mid projects

02

MICROSERVICE

Microservice

Standard Spring Cloud service boundaries and governance

03

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.

pom.xmlMaven BOM
<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.

GET STARTED

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.