← Back to the chapter · Previous detail · Next detail →
Technical detail · Edge Data: Sampling and Statistical Compression
Peak-rate buffer calculation
# Measured peak accepted arrival rate during the outage
samples_per_second = 10
max_outage_duration_seconds = 3600 # 1 hour
safety_margin = 1.5
min_buffer_size = samples_per_second * max_outage_duration_seconds * safety_margin
# = 10 * 3600 * 1.5 = 54,000 samples
# If memory-constrained, implement tiered retention:
# - Last 5 minutes: Full resolution
# - 5-60 minutes: 10x downsampled
# - Beyond 60 minutes: Statistical summary only