Badge Asset CDN Adapter
Component Detail
Infrastructure
low complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Infrastructure adapter that manages serving and caching of SVG badge assets from the backend CDN. Provides the mobile client with resolved asset URLs and handles cache invalidation when badge designs are updated, validating WCAG 2.2 AA contrast compliance at upload time.
badge-asset-adapter
Responsibilities
- Serve SVG badge assets from CDN with appropriate cache headers
- Resolve asset URLs for achievement types consumed by the mobile client
- Handle cache invalidation when badge assets are updated
- Validate WCAG 2.2 AA contrast compliance of uploaded SVG assets
Interfaces
getBadgeAssetUrl(achievementTypeId)
uploadBadgeAsset(achievementTypeId, svgContent)
invalidateAssetCache(achievementTypeId)
listBadgeAssets(organizationId)
validateContrastCompliance(svgContent)