Home/Learn/Memory
Topic

Memory

Learn Memory as a connected topic across chapters, concepts, simulations, and interview reasoning.

10 Concepts26 Articles8h 2m

Overview

Learn Memory as a connected topic across chapters, concepts, simulations, and interview reasoning.

How this topic helps

Llm
System Design
Ai
Python

Learning Path in this Topic

Series that contain articles from Memory. Select a path to filter the article list.

Articles

26 matched articles

Article 1LangChain Memory: Conversation History and SummarizationTLDR: LLMs are stateless β€” every API call starts fresh. LangChain memory classes (Buffer, Window, Summary, SummaryBuffer) explicitly inject history into each call, and RunnableWithMessageHistory is th18 minArticle 2Low-Level Design: Building a Thread-Safe In-Memory Pub-Sub QueueTLDR: Building an in-memory message queue is a premier LLD problem testing multithreaded design. By combining the observer pattern with Java reentrant locks, conditions, and concurrent atomic offsets,12 minArticle 3Spark Executor Sizing: Memory Model, Core Tuning, and GC StrategyTLDR: Spark executor OOMs are almost never caused by insufficient total cluster RAM β€” they are caused by misallocating memory across five distinct JVM regions while ignoring GC behavior and memoryOver37 minArticle 4How AI Coding Agents Work: Models, Context, Sessions, and MemoryTLDR: An AI coding agent is an LLM stapled to a tool registry, wrapped in an orchestration loop that painstakingly rebuilds state on every single API call β€” because the model itself is completely stat34 minArticle 5How JVM Garbage Collection Works: Types, Memory Impact, and TuningTLDR: JVM garbage collection automatically reclaims unused heap memory, but every algorithm makes a different trade-off between throughput, latency, and memory footprint. The default G1GC targets 200m25 minArticle 6LangGraph Memory and State Persistence: Checkpointers, Threads, and Cross-Session MemoryTLDR: Checkpointers + thread IDs give LangGraph agents persistent memory across turns and sessions. πŸ“– The Amnesia Problem: Why Stateless Agents Frustrate Users Your customer support agent is on its18 min

Page 1 of 5