DL
Selected work
Commercial backend engineering case study

POS Analytics & Data Exports

A POS administration platform with analytics across multiple services, large exports and practical cloud cost constraints.

Commercial production work at Honki Mode

Role

Backend / Full-Stack Developer, Architecture Contributor — administration application, analytics and exports

10–20 sec

Selected updates, previously approximately 1–2 minutes

~300 MB

CSV exports with bounded memory use

~$1,300/mo

Estimated recurring saving versus original infrastructure estimate

The problem

The administration application needed analytical data from several services. Repeated synchronous retrieval created avoidable dependencies and slow updates.

Large exports also needed to remain usable without keeping the entire generated file in application memory. Reusing exports introduced a separate question: how should a user request fresh data?

Analytics and export workflows

The two workflows use batching and background processing for different purposes.

CSV export · background workflow

Simplified system view
  1. 01

    Request export

    User selects filters

  2. 02

    API → RabbitMQ

    Start a background job

  3. 03

    Export worker

    Fetch service data in pages

  4. 04

    CSV → S3

    Stream rows as data arrives

  5. 05

    SSE → Browser

    Notify completion and provide a link

Memory boundary

Process one batch at a time; do not hold the complete dataset or file in memory.

Failure path

Retry failed chunks within a limit; stop and roll back the export when attempts are exhausted.

RabbitMQ starts the job. Pagination and streaming bound memory use; SSE closes the loop with the user. Approximately 300 MB exports were handled by this workflow.

Analytics · data and query boundaries

Simplified system view

Data integration

  1. 01

    Service data

  2. 02

    RabbitMQ

    Integration

  3. 03

    ClickHouse

    Analytical data

Query path

  1. 01

    Administration UI

    Structured request

  2. 02

    Validate → SQL

    Constrained JSON-to-SQL layer

  3. 03

    ClickHouse

    Execute validated query

Redis

Cache relatively static reference data to reduce synchronous service calls.

Background recalculation

Batch selected updates by tenant and time range, with locking for concurrent work.

These are separate views of data integration and querying, rather than one serial pipeline. The 10–20 second result applies to selected analytical updates.
  • A constrained JSON-to-SQL layer validates analytical requests before translating them into ClickHouse SQL.
  • Cached recalculation is segmented by tenant and time range, with batching and locking for concurrent updates.
  • CSV exports retrieve paginated data across services, stream generation directly to S3 and expose progress to users.

Engineering decisions

01

Bound the query interface

Translate validated analytical requests rather than accepting arbitrary frontend SQL.

02

Reduce synchronous dependencies

Cache relatively static reference data and recalculate selected analytics in the background.

03

Make freshness explicit

Reuse exports for identical filters while allowing a user to force regeneration.

04

Review actual infrastructure utilization

Contribute to consolidation onto two EC2 worker nodes in the existing EKS environment and introduce log and backup rotation.

Results and scope

Selected analytical update latency decreased from approximately 1–2 minutes to 10–20 seconds. This describes those update operations, rather than every endpoint or the entire platform.

The export workflow handled approximately 300 MB CSV files with bounded memory use. Infrastructure consolidation reduced estimated recurring cost by approximately $1,300 per month relative to the original infrastructure estimate; this is an estimate comparison, not a claim based on a billing audit.

Commercial work

Public scope

This summary covers engineering decisions and aggregate results already documented in the CV. Client data, proprietary source code, internal endpoints and detailed deployment configurations are omitted.

Further discussion

  • →Discuss tenant boundaries and concurrent recalculation
  • →Explain export streaming and freshness trade-offs
  • →Review workload assumptions behind the infrastructure estimate

Technology

C#ASP.NET CoreClickHouseRabbitMQRedisAWS S3CognitoEKSEC2