Back to projects
Archived2024Backend Developer

Inventory microservice

CRUD domain with Hibernate, optimistic locking, and integration tests. Docker Compose for local parity with production-like databases.

Key highlights

  • Built stock movement endpoints with idempotent update behavior.
  • Applied optimistic locking to prevent race conditions on concurrent stock updates.
  • Prepared Docker-based local environment for faster team setup.

Architecture decisions

  • Hexagonal-ish dependency direction between domain services and persistence adapters.
  • Repository-level integration tests against containerized MySQL.
  • Centralized audit fields for created/updated metadata.

Outcomes

  • Prevented negative-stock edge cases in concurrent requests.
  • Kept deployment artifact lightweight and predictable for staging.