backend frontend devops Live

Wabi2b

Full-stack B2B marketplace — Next.js portal, FastAPI microservices, and Kubernetes DevOps

Wabi2b hero

Overview

The Challenge

B2B marketplaces are significantly more complex than B2C. Wabi2b needed to handle multi-level supplier relationships, complex pricing tiers, bulk order management, and strict business credit terms — all at scale, across multiple markets.

Architecture

The platform is built as a set of FastAPI microservices, each owning a single domain: catalogue, suppliers, orders, pricing, and notifications. Services communicate via REST internally, with Redis pub/sub for async events (e.g. order placed → notify supplier → update inventory).

MongoDB was chosen for the product catalogue due to the highly variable schema of B2B products across different supplier categories. Relational data (orders, users, businesses) lives in PostgreSQL.

Infrastructure

All services run on Kubernetes (AWS EKS) with Helm charts managing deployments. Horizontal Pod Autoscalers (HPA) scale services independently based on CPU metrics — the order service scales up during peak ordering hours without affecting other services.

A Redis cluster handles session management, API rate limiting, and a write-through cache for frequently accessed catalogue data, reducing PostgreSQL read load by 60%.

Impact

The platform serves thousands of B2B buyers and suppliers across Latin America. The microservices architecture allowed the team to deploy independent service updates multiple times per week without full-system downtime.

Key Highlights

  • FastAPI microservices architecture deployed on Kubernetes for auto-scaling
  • MongoDB for flexible product catalogue with complex supplier hierarchies
  • Order processing system handling thousands of B2B transactions per day
  • Redis-based caching layer reducing database load by 60%

Tech Stack

PythonFastAPIMongoDBKubernetesDockerRedisAWSReactNext.jsTerraform

Timeline

Started
2022-06
Completed
2023-06