Skip to main content

15 docs tagged with "golang"

View all tags

API Gateway

How LZStock bridges frontend RESTful clients with internal gRPC microservices using a zero-allocation Fasthttp API Gateway.

Auth Middleware

How LZStock establishes a zero-trust network boundary at the API Gateway, utilizing gRPC for centralized identity verification and context hydration.

Clean Architecture

How LZStock decouples core financial business rules from gRPC delivery and PostgreSQL persistence using strict Go interfaces.

CORS Middleware

How LZStock implements a high-performance, O(1) lookup CORS middleware at the API Gateway to enforce strict Same-Origin Policies without sacrificing latency.

Cron-Driven Worker Pools

How LZStock orchestrates nightly financial data scraping while preventing IP bans using Go Generics and strict API rate-limiting.

Error Propagation Chain

How LZStock guarantees zero information leakage to clients while maintaining pristine, traceable error logs for developers using Go and gRPC.

Event-Driven Resilience

How LZStock guarantees zero message loss and prevents 'Poison Pill' queue blockages using NATS JetStream explicit acknowledgments.

In-Memory TST

How LZStock guarantees sub-millisecond stock ticker auto-completion by bypassing the database with a custom in-memory data structure.

N+1 Problem

How LZStock prevents database connection exhaustion by utilizing GORM Preloading and Application-Level Joins instead of massive SQL Cartesian products.

Pagination Strategies

How LZStock selects between Offset, Keyset (Cursor), and Database Cursors to balance UI requirements with PostgreSQL B-Tree index performance.

Price Streaming Engine

How LZStock efficiently routes millions of Redis price ticks to thousands of concurrent sessions using a high-performance gRPC streaming engine.

Real-Time Streaming

How LZStock prevents Goroutine leaks and safely bridges internal gRPC price streams to external WebSocket clients using advanced concurrency patterns.

System Entrypoints

How LZStock handles synchronous, asynchronous, and scheduled triggers while enforcing strict layer boundaries using Go Generics.

Tactical DDD

How LZStock utilizes Value Objects, Entities, and Aggregate Roots in Go to eradicate primitive obsession and guarantee memory-level data consistency.