Use job queue or rabbitmq
Imagine your code does this: > Save Post to the Database. >Publish PostCreated event to Kafka. Scenario: The database save succeeds (Step 1), but right before line 2 executes, the server crashes or the network blips. Result: You have a "Ghost Post." It exists in the database,…
81
15
199
163
127千
1
5
32
3
10千
United States 趋势
- 1. Browns 29.3K posts
- 2. Nicki 82.2K posts
- 3. Cowboys 33.2K posts
- 4. Bucs 7,228 posts
- 5. Shedeur 11.4K posts
- 6. Giants 29.9K posts
- 7. Bryce Young 2,848 posts
- 8. Chase Brown 2,340 posts
- 9. Titans 15.3K posts
- 10. #BillsMafia 7,025 posts
- 11. Dawson Knox N/A
- 12. James Cook 5,082 posts
- 13. #KeepPounding 2,625 posts
- 14. Judkins 5,996 posts
- 15. Ewers 5,287 posts
- 16. JJ McCarthy 2,673 posts
- 17. #DawgPound 2,638 posts
- 18. Baker 15.9K posts
- 19. Jaxson Dart 2,320 posts
- 20. #Skol 1,870 posts
Loading...
Something went wrong.
Something went wrong.