Skip to content

Documentation - SQS Segment Mapping Calculator (Consumer + Relation Processing) #413

@tentse

Description

@tentse

Introduction

The SQS Segment Mapping Calculator is the core processing service in the pipeline. It consumes messages from the first SQS queue, computes related segment mappings using Neo4j (including graph traversal logic), stores results in PostgreSQL, updates job progress, and publishes completion messages to a second SQS queue.

This service performs the main computation step and supports asynchronous, scalable processing.

Task

  • Service overview — role in pipeline and end-to-end processing responsibility
  • SQS consumption flow — consumer setup, message parsing, and task execution flow
  • Relation calculation logic — Neo4j traversal/BFS approach and segment mapping generation
  • Database operations — storing segment_mapping, upsert/idempotency strategy, job status/progress updates
  • Queue — message schema, field descriptions, and sample JSON
  • Reliability concerns — retries, visibility timeout, multi-worker/concurrency notes
  • Error handling, logging, config & libraries — operational safeguards and dependencies used

Metadata

Metadata

Assignees

Labels

BackendBackend of the open pecha APIdocumentationImprovements or additions to documentation

Type

No fields configured for Task.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions