Skip to content

fix(backend): use exhaustMap for SSE timers routes#86

Merged
a9ex merged 1 commit into
mainfrom
fix/sse-fast-interval
May 16, 2026
Merged

fix(backend): use exhaustMap for SSE timers routes#86
a9ex merged 1 commit into
mainfrom
fix/sse-fast-interval

Conversation

@a9ex
Copy link
Copy Markdown
Member

@a9ex a9ex commented May 16, 2026

Description

Briefly describe what this PR does :
switchMap cancels the in-flight inner observable as soon as the next timer tick arrives. With interval=1s, if something takes more than 1s (slow query, ...) every tick cancels the previous request before it can emit, so the client never receives data.

exhaustMap instead drops new ticks while a call is still in flight


Context / Motivation

Explain why this change is needed:


Related Links


Screenshots (if applicable)


Checklist

  • My code follows the project's coding style
  • Tests pass locally
  • I added/updated relevant tests
  • I updated documentation (if needed)
  • This PR is ready for review

Additional Notes

@a9ex a9ex self-assigned this May 16, 2026
@a9ex a9ex merged commit 17560d8 into main May 16, 2026
6 checks passed
@a9ex a9ex deleted the fix/sse-fast-interval branch May 16, 2026 00:59
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.

2 participants