The all-in-one intelligent cloud (Sponsored)
Your app, live in seconds, for free. Railway’s push-button compute, storage, and networking is available immediately upon sign-up.
Humans and agents alike operate on one vertically integrated system including hardware, software, and a prompt-to-production experience.
Sign up with the link below for free cloud credits and let your agents cook.
This week’s system design refresher:
Classic RAG, GraphRAG & Agentic RAG
Monolithic vs. Microservices Architecture
What Is Agentic AI?
Cookies, Sessions, JWT, and PASETO
Short-Term vs Long-Term Memory in AI Agents: What’s the difference
Classic RAG, GraphRAG & Agentic RAG
Classic RAG: Documents are divided into chunks and converted to embeddings, which are stored in a vector index.
A user asks the application a question.
The retrieval system fetches the relevant information from a knowledge base.
The application adds that information to the prompt.
The LLM uses that context to generate an answer.
GraphRAG: Knowledge sources are organized as entities (nodes) and relationships between them (edges), which are stored in a graph database.
A user’s question is sent to a graph retriever.
The retriever finds relevant nodes, relationships, or subgraphs.
The retrieved graph evidence is converted into context the LLM can use.
The LLM uses the question and graph context to generate an answer.
Agentic RAG: Instead of retrieving once, an agent can repeatedly fetch and evaluate information until it has enough evidence to generate an answer.
A user gives a task to an agent.
The agent selects the right tools based on the task and collects relevant results.
The retrieved results are checked to see if they are sufficient for the task. If not, the agent repeats the retrieval with an updated search.
The LLM uses that retrieved context to generate an answer.
Over to you: Do you think GraphRAG or Agentic RAG is worth the additional complexity?
Monolithic vs. Microservices Architecture
Monolithic architecture: The whole application is deployed as a single unit on one machine or instance. For example, if an application has checkout, order, and payment modules, all of them are packaged and deployed together. A monolith usually has a shared codebase and database.
A monolith application is easy to develop and maintain, but it is hard to scale. As the system grows, a small change in one of the modules would require you to build and redeploy the whole application.
Microservices architecture: In a microservices architecture, the application is divided into small, independently deployable services. For example, checkout, order, and payment modules can be implemented as separate services. Each service has its own database.
Because clients may need to communicate with multiple services, an API gateway is usually placed between the client and the microservices. It routes incoming requests to the right service. A feature update in one service only requires you to redeploy that service, and the rest of the services remain unchanged.
Build with Gemini in Google Antigravity. (Sponsored)
Google Antigravity is made for how you actually ship software now. Built with Google’s frontier Gemini models, it lets you direct autonomous agents to plan changes, write code, run terminal commands, and verify their work in a real browser. Review inspectable plans and diffs as you go, from weekend prototypes to production codebases. Get started today. Rate Limits and Terms apply.
What Is Agentic AI?
Generative AI uses a prompt to produce content, whereas Agentic AI takes a goal and works towards it through continuous reasoning and action loop in following steps:
Goal: The workflow starts when an agent receives a goal from a user,a schedule, business process or an event.
Gather context: The agent retrieves relevant records from APIs, databases, or sensors.
Draft plan: Initial plan is made by an agent by splitting the goal into smaller tasks such as which query to run or what to build, and selects the tools for each accordingly.Act: The agent enters the loop, where it executes the task using the plan through APIs, databases, browsers, code environments, business applications, or physical systems.
Collect results: Each task execution returns data, tool responses, or errors which are collected by the agent for the next step.
Evaluate: LLM reads the results, evaluates them and flags errors, gaps and blockers.
Update plan: Rest of the steps are revised based on evaluation where the agent retries an action, picks another tool, requests human input, or stops.
Goal completion: Once the goal is met, the agent exits the loop and delivers the final result.
Human Review: If the agent encounters any blocker, a missing permission, unresolved data issue, or approval requirement, it escalates the issue to a human.
Over to you: How are you using Agentic AI in your workflows?
Cookies, Sessions, JWT, and PASETO
Cookie: A cookie is a small piece of data stored in the client’s browser that contains values set by the server. It is created the first time a browser sends a request to the server. It usually contains the theme or the language the server supports.
Session: If a server wants to link a cookie to a particular user, it will create the user’s state in the session store the first time it visits. The server adds the session ID to the cookie and sends it to the browser. Any subsequent request carries the session ID to the server, which is looked up in the session store, and data is returned.
JWT: It’s an alternative way to store authentication state. Upon receiving the request, the server sends a signed JWT token containing claims such as user ID and expiration time and sends it to the browser. In subsequent requests, the server verifies the signature, reads the claims, and returns the data.
PASETO: It is a stricter alternative token format to JWT, which uses versioned protocols with predefined algorithms. This design reduces configuration mistakes and algorithm-confusion attacks associated with JWT.
Short-Term vs Long-Term Memory in AI Agents: What’s the difference
An AI agent handles a current conversation well but upon the next session, it starts from scratch with no context, no history. This is a memory problem, and it comes down to two types.
Short-Term Memory (Context Window)
It is the working memory the model uses during a single call. The system prompt, conversation history, tool outputs, and retrieved content are placed into the context window so the model can reason over them and generate a response.
But once the call ends, that window resets. As the conversation grows longer, the model may also lose track of earlier details inside the same window.
Long-Term Memory (External Storage)
LTM lives outside the model and persists across sessions. In practice, it often shows up as episodic memory for past interactions, semantic memory for facts and preferences, and procedural memory for rules or workflows.
When a new call starts, the agent retrieves relevant memory records from the LTM store and injects them into the context window through RAG so the model can reason over them. After a session ends, key information can be extracted and written back to LTM storage for future use.
In production, LTM does not replace the context window. It feeds it. Even a 1M token window resets after every call. For isolated single-call tasks STM is enough. Agents that need to remember users, past decisions, and outcomes across sessions need both.
Over to you: How are you handling memory in your agents today?









thanks 🙏