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
14
198
163
128千
1
5
32
3
10千
United States トレンド
- 1. gaten 9,440 posts
- 2. Colts 50.6K posts
- 3. Rivers 65.5K posts
- 4. #TSTheEndOfAnEra 8,823 posts
- 5. Draymond 6,309 posts
- 6. Purdy 28.5K posts
- 7. Niners 9,352 posts
- 8. Adam the Woo 3,571 posts
- 9. #FTTB 7,259 posts
- 10. Marjorie 13.5K posts
- 11. Ballard 3,067 posts
- 12. Dee Winters 2,802 posts
- 13. Kittle 9,210 posts
- 14. Greenland 88.1K posts
- 15. Hiller N/A
- 16. Tonges 1,524 posts
- 17. #WWERaw 24.9K posts
- 18. Congo 25.6K posts
- 19. #LADS2ndAnniversary 9,070 posts
- 20. Boasberg 11.9K posts
Loading...
Something went wrong.
Something went wrong.