How To Make Your API Idempotent To Stop Duplicate Requests
Автор: Milan Jovanović
Загружено: 2023-07-21
Просмотров: 30606
Описание:
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: / milanjovanovic
Idempotency is an important constraint for APIs - but how do you make your API idempotent? That's what I'm going to show you in this video. The client will be responsible for sending an idempotency key value that will uniquely identify the idempotent request. Then we will use MediatR pipeline behavior to implement a generic solution.
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Subscribe for more:
/ @milanjovanovictech
Chapters
0:00 What is Idempotency?
0:37 Defining an IdempotentCommand abstraction
1:40 Parsing the request ID from the X-Idempotency-Key header
3:10 Adding a MediatR pipeline behavior for IdempotentCommand
7:14 Implementing the IdempotencyService class
11:02 How the Idempotent API works
13:19 Important things to consider when implementing Idempotency
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: