Skip to content
Mihail Leybuk-Galin — home

Knigoland

Knigoland

High-performance e-commerce platform architecture handling 40,000+ products with seamless ERP/CRM integration.

Project website (opens in a new tab)
Role
Software Architect
Scale
40k+ SKUs
E-Commerce Storefront Inteface

E-Commerce Storefront Inteface

Enlarge image

The Challenge

Knigoland required a robust digital presence capable of reflecting their massive physical inventory online. The core challenge was not just building a storefront, but engineering a resilient system that could synchronize over 40,000+ SKUs in near real-time with existing legacy ERP and CRM systems without compromising user-facing performance.

  1. Integration

    Complex bidirectional synchronization with legacy systems ensuring inventory accuracy during peak load.

  2. Performance

    Sub-200ms response times required for product searches and category browsing despite the heavy underlying data set.

System Architecture

Technical Blueprint

  • Go

    Core API services. Selected for high concurrency and low latency in handling synchronous requests.

  • PostgreSQL

    Primary datastore ensuring ACID compliance for transactional data and complex relations.

  • Redis

    In-memory caching layer dramatically reducing database load for catalog and session data.

  • Kafka

    Event streaming platform decoupling integration services and enabling asynchronous workflows.

Architectural Decisions

  1. Event-Driven Integration

    Rather than point-to-point API calls, Kafka was introduced to mediate state changes between the ERP and the web storefront. This prevented ERP downtime from impacting the user experience and allowed for robust retry mechanisms.

  2. Aggressive Caching Strategy

    Given the read-heavy nature of e-commerce, a multi-layered caching strategy using Redis was implemented. Product lists and category trees are cached and invalidated via Kafka events, ensuring sub-50ms catalog retrieval.

System Metrics

Avg Latency
42ms
Uptime Sla
99.9%