Back to projects

SaaS ยท Fulfillment and WMS

Logspace

Based in Indonesia

logspace.id

Overview

Warehouse management and order fulfillment for e-commerce brands: marketplace order sync, inbound with QC, bin-level stock, picking, packing and dispatch, with reports for stock cover and operations.

The problem

Logspace is a warehouse management and order fulfillment platform for e-commerce brands. Warehouse teams run inbound, stock, picking, packing and dispatch in it, and brands get order and stock visibility.

Brands sell on several marketplaces and ship from shared warehouses. Orders arrive in bursts while stock has to stay correct per bin and per batch as orders are paid, picked, packed and returned. When stock drifts or order sync lags, warehouses oversell, pick from the wrong bin or ship late.

My part

I was the project lead and a Golang backend and fullstack engineer on Logspace, owning the backend and its Next.js front ends, the marketplace and courier integrations, and the CI/CD pipelines.

What I built

Go API with domain modules
A layered Go service (Gin) split into orders, inventory, bins, purchases, inbound QC, warehouse transfers, returns, products, couriers and reports, with a CLI that reuses the same service layer for maintenance jobs. Next.js front ends serve the admin and tenant apps.
Marketplace order sync
Integrations with the major Indonesian marketplaces (Shopee, Lazada, TikTok Shop and Tokopedia) take in orders and status changes and push stock back. A scheduled sync catches missed webhooks, and marketplace consumers run on their own deployment.
Inbound and bin-level stock
Purchase orders, receiving with QC, putaway, zones and racks, with stock per product and bin plus a per-batch table for FIFO or FEFO allocation.
Picking, packing and dispatch
Multi-warehouse inventory with single and bulk picklists, packing, delivery notes, bulk shipping labels through courier integrations (JNE, ApiKurir, Lincah, Mengantar and J&T), bulk order import with a preview step, and stock and order monitoring reports.
Stock opname and reconciliation
Physical counts are compared with system stock and applied as adjustments, and a read-only command lists drift between aggregate stock and batch stock.
Outbound webhooks
A separate service queues signed webhook deliveries to a brand's own systems with retries and an attempt log.

Decisions that shaped it

Keep marketplace calls off the webhook path
Fetching payment data from a marketplace inside an order webhook added their latency to every order, so it moved to a queue with a worker, retries and a dead-letter queue.
Idempotency in the database
A check before insert let two workers pass on a duplicate event. A unique constraint with the transaction makes duplicate deliveries harmless.
Batch high-frequency stock events
Stock changes from paid orders are aggregated by product and warehouse into one webhook per minute, while rare events such as inbound go out immediately.
Set-based queries for bulk work
Bulk picking was rewritten from per-row queries to batch queries after it caused timeouts, and stock rows are locked during changes.
Cheaper writes on the orders table
Unused indexes were found with the database's own usage statistics and dropped in batches, because every index slows every insert and update.

Where it stands

  • Handles a very high volume of transactions, which shaped the queue, batching, locking and indexing decisions above.
  • Covers the order lifecycle from pending to completed, plus cancellation and returns.
  • Deployed through GitHub Actions and Docker pipelines.
  • Reads go to a replica and writes to the primary database.

Core features

  • Marketplace order sync
  • Inbound with QC
  • Bin-level stock
  • Picking
  • Packing and dispatch
  • Stock and operations reports

Tech stack

  • Go (Gin)
  • GORM
  • MySQL
  • Redis
  • Next.js
  • Chakra UI
  • Docker

Related clients