- Scheduled jobs (nightly cleanup, moderation, search dictionary rebuild) take
a ShedLock lock in Redis, so only one instance runs each; the moderation run
stops before its lock can expire.
- STOMP events (chat messages, unread counters, transcoding status) are
published to the Redis channel ws:broadcast and every instance hands them to
its local simple broker, so subscribers on other instances receive them.
Falls back to local delivery if Redis is down; app.websocket.cluster-broadcast
switches it off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Photos from iPhone (3-10 MB, 12-24 MP) were stored and served as-is, so the
feed loaded slowly on first open. Images are now downscaled to 1600px,
rotated by EXIF and re-encoded as progressive JPEG on upload. The
/api/v1/files proxy now sends Cache-Control instead of Spring Security's
no-store, so images are not re-downloaded on every app open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>