Skip to main content

Asset Document Service Integration

HTTP document boundary

IAssetDocumentGateway is the application port; AssetDocumentGateway and DocumentServiceClient are HTTP adapters. Filenames are reduced to a safe leaf name and missing content type receives a generic value. Production or default failure throws a dedicated unavailability exception mapped to a service-unavailable response. A specifically enabled Development-only reference fallback can retain metadata without bytes.

External storage precedes local reference persistence, so a later local save failure can leave unreferenced external content. Removal deliberately does not call external delete. No versioning, retention coordination, distributed transaction, access policy, or asynchronous reconciliation was found.

Requires confirmation

Production ownership, authorization governance, operational policy, and future architecture require confirmation where the source does not enforce them.

Source References

  • microservices/src/asset-service/Application/DocumentIntegration.cs
  • microservices/src/asset-service/Infrastructure/AssetDocumentGateway.cs
  • microservices/src/asset-service/Infrastructure/DocumentServiceClient.cs
  • microservices/src/asset-service/Application/Commands/DocumentCommands.cs