State Handling
Pattern
Typescript

Basic State Machine Pattern for dummies like me

Read the article

All articles

Type:
Article10

Basic State Machine Pattern for dummies like me

When I was a student, I didn’t understand state machines. Not because they are hard, but because they are usually explained badly. This article fixes that.

State Handling
Pattern
Typescript

The Registry Pattern - How not to lose your data in the Async void

Managing one session is easy. Managing hundreds of concurrent WebSockets, each with its own state, analytics, and market data without causing a memory leak or a race condition? That's where the Registry Pattern saves your life.

Python
Architecture
Asyncio

Structured SQL Path for RAG: Planner, Command Bus, and Safe Execution

Implement a safe structured SQL path with planner contracts, command bus handlers, and guardrails for deterministic production execution.

AI
RAG
Finance

Smart Routing for RAG: Choosing Between BM25, SQL, and HYBRID

Design a smart router that chooses BM25, SQL, or hybrid retrieval using confidence thresholds, margins, and latency-aware decision rules.

AI
RAG
Finance

Query Normalization and Time Intelligence for Trading RAG

Normalize noisy user queries and resolve time expressions reliably so routing and SQL generation stay consistent in real trading workflows.

AI
RAG
Finance

Retrieval Foundation for Custom RAG: Postgres FTS + Local TF-IDF

Build a practical retrieval backbone with Postgres full-text search and local TF-IDF, including chunking strategy and ranking behavior.

AI
RAG
Finance

Domain Modeling for RAG in Trading Journal Platform: Trades, Strategies, Tasks, Users

How to design a retrieval-safe domain model for finance RAG with clear entities, ownership boundaries, and queryable business semantics.

AI
RAG
Finance

Why We Built a Custom RAG for Finance Trading Journal Platform

Why LLM-only assistants fail for Trading Journal Platform, and how a custom RAG architecture improves trust, accuracy, and production safety.

AI
RA
Finance

The Bloom Filter – Fast membership checks with bounded error

A Bloom filter is a compact data structure that answers membership questions quickly: either an element is definitely not in the set, or it may be in the set. This article explains the idea from first principles, then shows a small C implementation and practical Typescript use cases.

Algorithms
Data Structures
C
Typescript

Understanding JSONB in PostgreSQL through the lens of Performance and Flexibility

I propose a deep dive into the JSONB format in PostgreSQL. Is it just a storage trick or a real architectural shift? Let's explore why this binary format is a must-have for modern backends.

Postgresql
Database
Jsonb
Backend
PreviousPage 1 of 4Next