Skip to content

Implement cache for read-heavy endpoints#171

Merged
oskarbarcz merged 6 commits into
mainfrom
feature/cache
Jul 21, 2026
Merged

Implement cache for read-heavy endpoints#171
oskarbarcz merged 6 commits into
mainfrom
feature/cache

Conversation

@oskarbarcz

Copy link
Copy Markdown
Owner

No description provided.

Cache GET flight/:id, /ofp, /delay, /crew, user/me and airframe list via
HTTP cache interceptors, with a per-flight interceptor that keys by flight
id plus an auth/anon scope so tracking-disabled flights never leak to
anonymous callers. Invalidate through a FlightCacheListener on the domain
events that already drive the socket, plus direct invalidation for the
transitions that emit no event (visibility change, crew assign/unassign,
delay-report removal) and for user mutations in UsersRepository.
# Conflicts:
#	src/modules/airframes/infra/http/action/get-airframe-by-type.action.ts
#	src/modules/flights/application/command/change-flight-visibility.command.ts
#	src/modules/flights/infra/http/action/delay/get-delay-request.action.ts
#	src/modules/flights/infra/http/action/flight/get-flight.action.ts
@oskarbarcz
oskarbarcz merged commit 75437f3 into main Jul 21, 2026
1 check passed
@oskarbarcz
oskarbarcz deleted the feature/cache branch July 21, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant