Your REST API Needs Webhooks
ArjanCodes
???????????? Take your personal data back with Incogni! Use code ARJANCODES and get 60% off an annual plan: https://incogni.com/arjancodes
In this video, I show how to add webhooks to a FastAPI application, and then take it one step further with a cleaner, event-driven design. Instead of tightly coupling your endpoints to integrations, you’ll learn how to decouple side effects using events, making your API more flexible and easier to extend.
???? GitHub Repository: https://git.arjan.codes/2026/webhook.
???? ArjanCodes Courses: https://www.arjancodes.com/courses.
???? Join my Discord server: https://discord.arjan.codes.
⌨️ Keyboard I’m using: https://amzn.to/49YM97v.
???? Chapters:
0:00 Intro
1:27 Simple Webhooks
6:01 Incogni Sponsored Segment
7:38 Trigger Webhooks From the Endpoint
8:21 The Design Problem
9:06 Introduce Events
11:25 Refactor the Endpoint
13:35 Move Webhooks to Listeners
15:32 Why This Is Better
16:17 Production Reality Check
17:18 Final Thoughts
#arjancodes #softwaredesign #python
In this video, I show how to add webhooks to a FastAPI application, and then take it one step further with a cleaner, event-driven design. Instead of tightly coupling your endpoints to integrations, you’ll learn how to decouple side effects using events, making your API more flexible and easier to extend.
???? GitHub Repository: https://git.arjan.codes/2026/webhook.
???? ArjanCodes Courses: https://www.arjancodes.com/courses.
???? Join my Discord server: https://discord.arjan.codes.
⌨️ Keyboard I’m using: https://amzn.to/49YM97v.
???? Chapters:
0:00 Intro
1:27 Simple Webhooks
6:01 Incogni Sponsored Segment
7:38 Trigger Webhooks From the Endpoint
8:21 The Design Problem
9:06 Introduce Events
11:25 Refactor the Endpoint
13:35 Move Webhooks to Listeners
15:32 Why This Is Better
16:17 Production Reality Check
17:18 Final Thoughts
#arjancodes #softwaredesign #python
0 Comments
No comments yet. Be the first to weigh in.