Commit 2a4a0c3
committed
docs: clarify positioning vs Fiber's official middleware/sse
Fiber merged its own slim SSE middleware in gofiber/fiber#4239. The four
findings from our review on that PR all landed in the merged commit
(disconnect semantics, Abandon ordering, panic-to-OnClose, slow-consumer
heartbeat caveat).
The two libraries are complementary, not competing:
- Use Fiber's built-in middleware/sse when you need a single-stream
Handler API and nothing more.
- Use fibersse when you need any of: Hub broker, topic routing with
wildcards, priority lanes, tenant scoping, Last-Event-ID replay,
pub/sub bridges, adaptive throttling, or graceful drain.
README: add a "Lineage" callout above "Why FiberSSE?" explaining the
relationship and pointing readers at the right tool for their use case.
CLAUDE.md: rewrite the use-when / don't-use-when guidance so LLM agents
(Codex, Cursor, Copilot, Claude) recommend the core middleware for the
simple case and fibersse the moment any pub/sub-shaped requirement
appears.1 parent 7fe716b commit 2a4a0c3
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
0 commit comments