-
Notifications
You must be signed in to change notification settings - Fork 36
Feature: Add API response compression with gzip #70
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapiREST API componentREST API componenteasyDifficulty: EasyDifficulty: EasyenhancementNew feature or requestNew feature or requestperformancePerformance improvementPerformance improvement
Description
Problem
API responses are not compressed. JSON responses for position queries or transaction lists can be large.
Context
Compression reduces bandwidth usage and improves response times for API consumers.
Proposed Solution
Add compression middleware:
import compression from 'compression';
app.use(compression());Acceptance Criteria
-
compressionpackage added - Responses compressed when client supports it
-
Accept-Encoding: gziphonored - Tests verify compression header
Technical Notes
- File:
api/src/app.ts
Constraints
- Must not compress already-small responses (overhead > benefit)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapiREST API componentREST API componenteasyDifficulty: EasyDifficulty: EasyenhancementNew feature or requestNew feature or requestperformancePerformance improvementPerformance improvement