Commit 8dbfab1
committed
pubsub: Implement optional durable event delivery
Major feature: removing "fire-and-forget" event delivery mode with Redis to allow durable event delivery over MongoDB.
Unified storage: Events stored once in eventhistory (was duplicated)
Auto-migration: Detects old 24h TTL format, drops and recreates
Backwards compatible: Without subscriber_id = fire-and-forget (old behavior)
Durable mode: With subscriber_id = catch-up on missed events
Implicit ACK: Polling for next event acknowledges previous
Signed-off-by: Denys Fedoryshchenko <[email protected]>1 parent 0f6f84e commit 8dbfab1
File tree
5 files changed
+1150
-14
lines changed- api
- doc
5 files changed
+1150
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
| 421 | + | |
| 422 | + | |
426 | 423 | | |
427 | 424 | | |
428 | 425 | | |
| |||
681 | 678 | | |
682 | 679 | | |
683 | 680 | | |
| 681 | + | |
684 | 682 | | |
685 | | - | |
686 | | - | |
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
| |||
751 | 747 | | |
752 | 748 | | |
753 | 749 | | |
| 750 | + | |
754 | 751 | | |
755 | | - | |
756 | | - | |
757 | 752 | | |
758 | 753 | | |
759 | 754 | | |
| |||
842 | 837 | | |
843 | 838 | | |
844 | 839 | | |
| 840 | + | |
845 | 841 | | |
846 | | - | |
847 | | - | |
848 | 842 | | |
849 | 843 | | |
850 | 844 | | |
| |||
894 | 888 | | |
895 | 889 | | |
896 | 890 | | |
897 | | - | |
898 | | - | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
899 | 910 | | |
900 | 911 | | |
901 | 912 | | |
902 | 913 | | |
| 914 | + | |
| 915 | + | |
903 | 916 | | |
904 | 917 | | |
905 | 918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
64 | 101 | | |
65 | 102 | | |
66 | 103 | | |
| |||
0 commit comments