Java Backend Developer · AI Agent Engineer
Building backend systems that are reliable under concurrency and useful in real workflows.
Email · GitHub · Open-source project
I am a Java backend developer interested in the engineering problems behind AI applications:
- how an Agent chooses and executes tools;
- how a long-running task recovers after a timeout or process failure;
- how cache, message queues and databases remain correct under concurrency;
- how a non-deterministic model becomes a controllable backend capability.
My current focus is:
A Java 21 Agent execution framework designed around composition and explicit control flow.
- Uses one
BaseAgentcontainer with an injectedExecutionStrategy; - Supports
ReAct,Plan-and-ExecuteandReflexion; - Allows nested execution such as
Reflexion(Plan(ReAct)); - Abstracts
LlmClient,Tool,ToolRegistryandEvaluator; - Uses explicit strategy state machines and legal transition checks;
- Separates technical failures (
AgentException) from business failures (AgentResult.failure); - Keeps the core layer independent from Spring, Redis, Kafka and vendor SDKs.
Design question: how do we keep Agent execution extensible when models, tools and execution strategies keep changing?
A pluggable Java cache orchestration component focused on consistency, concurrency and failure recovery.
L1 Local Cache → L2 Remote Cache → L3 Data Source
Caffeine Redis Loader
The implementation focuses on the details that usually cause production incidents:
- Cache Aside read and write paths;
- L1/L2 backfill and invalidation broadcast;
eventIdidempotency andversionordering checks;- SingleFlight request coalescing for hot keys;
- empty-value caching and Bloom filter protection;
- TTL jitter and failure fallback;
- pluggable read/write strategies, serializers, metrics and invalidation buses;
- zero Spring dependency in the core orchestration layer.
The project is inspired by JetCache's design ideas but does not reuse its source code.
During my Java backend internship at Keep, I worked on the backend chain around an intelligent training assistant:
- designed a RAG flow from intent diagnosis and query rewriting to hybrid retrieval, RRF fusion and Cross-Encoder reranking;
- participated in RocketMQ DLedger high-availability adaptation and failure verification;
- designed a layered task scheduling approach using Redis distributed locking, local priority queues, AQS-based local coordination and MySQL optimistic locking;
- handled duplicate requests, timeout paths, missing business data, streaming interruptions and asynchronous task recovery.
The engineering lesson I took from this work is simple:
A successful model call is not the same as a successful business result.
I prefer to make the correctness boundary explicit:
Model output → can be uncertain
Tool result → must be authorized and structured
Business state → must be validated by the backend
Database write → must be idempotent and recoverable
Event delivery → must tolerate retry, duplication and reordering
For a distributed feature, I usually ask:
- What is the source of truth?
- What happens if the request times out after the write has succeeded?
- What happens if the message is delivered twice or out of order?
- Which data may be eventually consistent?
- How does the system recover without manual database repair?
Java · Spring Boot · Spring MVC · Spring Security · MyBatis-Plus · Maven
MySQL · Redis · Caffeine · Kafka · RabbitMQ · RocketMQ · Lettuce
RAG · Tool Calling · Agent Runtime · ReAct · Plan-and-Execute · Reflexion · SSE · MCP
State Machines · Idempotency · Distributed Locks · Optimistic Locking · Outbox · Retry · Circuit Breaking · Observability
- Reading Agent harness designs from Claude Code and Codex;
- Implementing a reliable multi-level cache with invalidation and recovery;
- Studying Raft, replication, failover, consistency and distributed time;
- Turning AI capabilities into testable, observable and recoverable backend workflows;
- Writing practical notes about Java backend and AI application engineering.
If you are interested in Java backend, Agent infrastructure, caching or distributed systems, feel free to connect.
- Email: zeleny66picek@hotmail.com
- GitHub: @Yeti11H
