domain

BFFASCP Domain

Backend for Frontend service for the Agent Servicing Claims Portal (ASCP), providing API orchestration between the ASCP frontend and various Capstone domain services.

DomainBFF Service

Overview

The BFFASCP (Backend for Frontend - Agent Servicing Claims Portal) Domain provides a unified API layer that orchestrates communication between the ASCP frontend application and various backend domain services within the Capstone PAS ecosystem.

Key Responsibilities

  • API Orchestration: Aggregate data from multiple domain services (Policy, Quote, Claims, Customer, Partner) into unified responses
  • Command Forwarding: Transform and forward commands from the frontend to appropriate domain services
  • Query Aggregation: Combine data from multiple sources to provide comprehensive views
  • File Upload Management: Handle document uploads and pre-signed URL generation
  • Pricing Calculations: Coordinate pricing calculations for quotes

Architecture

The BFFASCP follows a clean architecture pattern with three layers:

  • Domain Layer: Core business logic and command/query definitions
  • Application Layer: Use case orchestration and handler implementations
  • Infrastructure Layer: External integrations including HTTP clients, SQS dispatchers, and Lambda functions

Integration Points

The BFF integrates with the following domain services:

Service Purpose
Policy Domain Policy lifecycle and beneficiary management
Quote Domain Quote creation and management
Claims Domain Claim submission and processing
Customer Domain Customer information retrieval
Partner Domain Partner and package configuration
Pricing Service Premium calculations
File Upload Service Document management

Entity Relationships