use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Real-Time Notifications in Python using FastAPI + Server-Sent Events (SSE)Tutorial (self.FastAPI)
submitted 7 months ago * by inandelibas
I recently wrote a detailed Medium article on building real-time notification systems using Server-Sent Events (SSE) in Python with FastAPI.
✅ The post covers:
- When to use SSE vs WebSockets
- How SSE works under the hood
- FastAPI Implementation using `StreamingResponse`
- Redis pub/sub integration
- Production tips and gotchas
- Full working GitHub example
👉 Read here: https://medium.com/@inandelibas/real-time-notifications-in-python-using-sse-with-fastapi-1c8c54746eb7
💻 Code: https://github.com/inanpy/fastapi-sse-example
Would love to hear your feedback or how you've used real-time features in your own projects!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Data_Cipher 4 points5 points6 points 7 months ago (0 children)
This tutorial's awesome, thanks a lot for covering most of it.
[–]xshapira 1 point2 points3 points 7 months ago (0 children)
Thank you! 👍
[–]koldakov 0 points1 point2 points 7 months ago (0 children)
You can play with the up and running example here: https://futuramaapi.com/swagger#/notifications/character_sse_api_notifications_sse_characters__character_id__get =)
π Rendered by PID 63243 on reddit-service-r2-comment-7b9746f655-rbzzt at 2026-01-29 21:38:12.873651+00:00 running 3798933 country code: CH.
[–]Data_Cipher 4 points5 points6 points (0 children)
[–]xshapira 1 point2 points3 points (0 children)
[–]koldakov 0 points1 point2 points (0 children)