Skip to contentJMRG
All projects
COMPLETED

Image Processing API

Enterprise-level image processing system with microservices architecture. Implements Clean Architecture, CQRS and Event-Driven Architecture. Backend Sr. Technical Test for KairosDS.

TypeScript · Node.js · Express.js · MongoDB · Redis · BullMQ · Docker · Sharp · Clean Architecture · CQRS

Architecture

Enterprise hybrid system combining:

  • Service Layer: REST API with synchronous responses
  • CQRS + Event-Driven: Asynchronous worker with Redis Pub/Sub
  • Clean Architecture: Strict separation of concerns

Components

Service Description
API Backend Express.js REST API
Worker Image processor with Sharp
MongoDB Main database
Redis Cache + Queue storage
Prometheus System metrics
Grafana Monitoring dashboard

Testing

100% coverage on critical components:

  • CommandBus, QueryBus, Mediator
  • Command & Query Handlers
  • TaskEvents (Redis Pub/Sub)
  • CacheService, TaskQueueProducer

Tech Stack

  • Backend: Node.js, Express.js, TypeScript
  • Database: MongoDB with optimized schemas
  • Queue: BullMQ v5 enterprise-grade
  • Cache: Redis with Cache-Aside pattern
  • DevOps: Docker Compose, Traefik, Loki