Discover Packages
github.com/equaltoai/lesser
cmd
severance-processor
command
Version:
v1.2.38
Opens a new window with list of versions in this module.
Published: Apr 20, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
README
README
¶
Severance Processor
The severance processor Lambda function automatically detects federation relationship severances by monitoring DynamoDB streams for:
Domain Blocks : When a domain is blocked, all relationships with users from that domain are severed
Federation Issues : When critical federation issues are detected (unreachable instances, timeouts)
Instance Health : When an instance becomes unhealthy based on federation metrics
Event Flow
DynamoDB stream event triggers Lambda
Processor examines the event for severance indicators
If a severance is detected, affected relationships are counted
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
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
Expand ▾
Collapse ▴
Documentation
¶
Package main implements the severance-processor Lambda function for detecting federation severances.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.