Commit 3a476fd
feat: switch heartbeat repositories to use MongoDB directly
Replace the hedging dual-write pattern with direct MongoDB usage for
heartbeat monitors and heartbeats. When HEARTBEAT_DB_BACKEND is set to
'hedging', it now routes to MongoDB instead of the dual-write hedging
repository. This is the first migration step before switching to MongoDB
completely.
- Remove hedging_heartbeat_monitor_repository.go
- Remove hedging_heartbeat_repository.go
- Remove HedgingFailureCounter from DI container
- Route 'hedging' env value to MongoDB in both repository factories
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 28ff1d8 commit 3a476fd
5 files changed
Lines changed: 16 additions & 244 deletions
File tree
- api
- pkg
- di
- repositories
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
| 298 | + | |
| 299 | + | |
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
| 304 | + | |
| 305 | + | |
298 | 306 | | |
299 | 307 | | |
300 | 308 | | |
| |||
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
| 488 | + | |
| 489 | + | |
480 | 490 | | |
481 | 491 | | |
482 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | 313 | | |
331 | 314 | | |
332 | 315 | | |
| |||
922 | 905 | | |
923 | 906 | | |
924 | 907 | | |
925 | | - | |
| 908 | + | |
926 | 909 | | |
927 | 910 | | |
928 | 911 | | |
929 | 912 | | |
930 | 913 | | |
931 | 914 | | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | 915 | | |
942 | 916 | | |
943 | 917 | | |
| |||
1760 | 1734 | | |
1761 | 1735 | | |
1762 | 1736 | | |
1763 | | - | |
| 1737 | + | |
1764 | 1738 | | |
1765 | 1739 | | |
1766 | 1740 | | |
1767 | 1741 | | |
1768 | 1742 | | |
1769 | 1743 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
1777 | | - | |
1778 | | - | |
1779 | 1744 | | |
1780 | 1745 | | |
1781 | 1746 | | |
| |||
Lines changed: 0 additions & 128 deletions
This file was deleted.
This file was deleted.
0 commit comments