Low Level Design: Rule Engine
What Is a Rule Engine? A configurable rule engine evaluates business logic defined as structured data rather than code. Rules […]
What Is a Rule Engine? A configurable rule engine evaluates business logic defined as structured data rather than code. Rules […]
What Is an Anomaly Detection Service? An anomaly detection service monitors time-series metrics and identifies values that deviate significantly from
WebAuthn / FIDO2 Overview Passkeys use public-key cryptography. The private key never leaves the device; the server stores only the
Data Model Closure table for efficient subtree queries: ThreadAncestor ( ancestor_id BIGINT, descendant_id BIGINT, depth INT, PRIMARY KEY (ancestor_id, descendant_id)
Schema Reaction ( entity_type VARCHAR(50), entity_id BIGINT, user_id BIGINT, reaction_type ENUM(‘like’,’love’,’haha’,’wow’,’sad’,’angry’), created_at TIMESTAMP, PRIMARY KEY (entity_type, entity_id, user_id) ) ReactionCount
PoP Selection and GeoDNS When a client issues a DNS query, GeoDNS maps the client IP to a geographic region
Geo-Fencing Service: Low Level Design Data Model GeoFence Table GeoFence ——– id BIGINT PK name VARCHAR(255) type ENUM(‘circle’,’polygon’) center_lat DOUBLE
Location Sharing Service: Low Level Design Data Model Location Table (Time-Series) Location ——– device_id BIGINT lat DOUBLE PRECISION lng DOUBLE
ETA Calculator Service: Low Level Design Road Network Graph Schema Node (Intersection) ——————- id BIGINT PK lat DOUBLE PRECISION lng
Overview A secrets manager provides secure storage, access control, and lifecycle management for credentials, API keys, and other sensitive values.
Overview An SSH key rotation service automates generation of new keypairs, distribution to all target hosts, a grace period with
CQRS Service: Low Level Design CQRS (Command Query Responsibility Segregation) separates the write model (commands) from the read model (queries),
Saga Orchestrator: Low Level Design The Saga pattern manages distributed transactions across microservices. An orchestrator-based saga drives each step sequentially
Overview A schema registry is a centralized store for event and message schemas used in event-driven architectures. Producers register schemas
A metrics pipeline collects numeric time-series data from every service and infrastructure component, aggregates it efficiently, stores it compactly, and