Commit 73fbce9
committed
Add middleware pattern, Event object support, and test helpers
Features Added:
- Middleware pattern for consumers with 5 built-in middleware classes
* LoggingMiddleware
* ErrorHandlingMiddleware
* MetricsMiddleware
* TracingMiddleware
* TimeoutMiddleware
- Consumer now provides Event objects to handlers with backwards compatibility
- Handler arity detection for seamless migration
- Comprehensive test helpers module with RSpec matchers
- Updated documentation
Breaking Changes: None (100% backwards compatible)
The Consumer now supports middleware and provides structured Event objects
to handlers while maintaining backwards compatibility with the old
(hash, subject, deliveries) signature through arity detection.1 parent ef4701d commit 73fbce9
File tree
42 files changed
+5827
-1721
lines changed- lib
- jetstream_bridge
- consumer
- inbox
- core
- models
- publisher
- spec
- consumer
- core
- models
- publisher
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+5827
-1721
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
87 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
88 | 118 | | |
89 | 119 | | |
90 | 120 | | |
| |||
This file was deleted.
0 commit comments