Skip to content

Add HTTP response compression (gzip/brotli) #218

Description

@robertocarlous

Summary

API responses — especially analytics, transaction history, and agent logs — are returned uncompressed, wasting bandwidth and increasing mobile latency.

Proposed Solution

  • Add compression middleware (already a common Express package)
  • Configure threshold: compress responses > 1 KB
  • Enable brotli where supported (Accept-Encoding: br)
  • Exclude /metrics endpoint (Prometheus scraper handles its own format)
  • Add Content-Encoding header verification to smoke tests

Acceptance Criteria

  • compression middleware applied globally before route handlers
  • Brotli used when client advertises support
  • /metrics excluded from compression
  • Smoke test verifies Content-Encoding: gzip on large responses

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions