Author: marjavamitjava

Implementing EMA Crossover in Java — A Practical Guide

Implementing EMA Crossover in Java — A Practical Guide Implementing EMA Crossover in Java A hands-on guide to building a fast/slow EMA bullish signal — math, code, and a runnable example. The EMA crossover...

Deep agents in Java with LangChain4j

Deep agents in Java with LangChain4j A ready-made harness for planning, workspace files, sub-agents, and optional skills—so you ship a tool-using orchestrator instead of hand-wiring prompts and schemas. If you follow LangChain’s deepagents idea—planning,...

Building middleware in Java with LangChain4j

Building middleware in Java with LangChain4j Cross-cutting behavior around assistants—logging, retries, safety rails, and memory compaction—without rewriting your business logic. If you build agents with LangChain4j, you already wire a ChatModel, optional tools, and...

Prompt Caching for LLM Apps: A Practical Guide (API-Based)

If you’re building an LLM-powered application (like a code review system), you’ve probably noticed this pattern: Yet every request reprocesses the entire prompt. That’s wasteful. Prompt caching fixes this. This guide explains: 🧠 What...

How agent summarization works (LangChain + Deep Agents)

Modern agents keep a chat history of user messages, assistant replies, and tool calls. That history is bounded by a context window. When it gets long, frameworks can compress older turns so the model still has useful signal without...

Scalable Stats Collection in a URL Shortener

A URL shortener may handle millions of redirects per second.Each redirect is also a click event we want to count. But there’s a challenge: Redirects must be ultra fast, while stats storage is write-heavy....