severance-processor

command
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: AGPL-3.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Severance Processor

The severance processor Lambda function automatically detects federation relationship severances by monitoring DynamoDB streams for:

  1. Domain Blocks: When a domain is blocked, all relationships with users from that domain are severed
  2. Federation Issues: When critical federation issues are detected (unreachable instances, timeouts)
  3. Instance Health: When an instance becomes unhealthy based on federation metrics

Event Flow

  1. DynamoDB stream event triggers Lambda
  2. Processor examines the event for severance indicators
  3. If a severance is detected, affected relationships are counted
  4. A severance record is created with:
    • Remote instance
    • Reason (domain block, instance down, etc.)
    • Affected followers/following counts
    • Auto-detection flag
    • Severity based on impact
  5. Event is emitted to streaming system for real-time notifications

Severity Levels

  • High: > 1000 affected relationships
  • Medium: 100-1000 affected relationships
  • Low: < 100 affected relationships

Integration

The processor integrates with:

  • Severance Service: Creates and manages severance records
  • Event Bus: Publishes SEVERANCE_DETECTED events
  • Federation Service: Monitors federation health
  • Relationship Storage: Counts affected relationships

Deployment

Built and deployed as part of the CDK infrastructure stack:

  • Triggered by DynamoDB stream events
  • IAM permissions for DynamoDB, CloudWatch
  • Environment variables from CDK config

Documentation

Overview

Package main implements the severance-processor Lambda function for detecting federation severances.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL