Completely in on #SSE (#ServerSentEvents) usage. You can even do this with #graphql. 😄

Leave updates only from SSE. Model all mutations, but one way to ingest updates as they are available. No poll, websockets, or error handling chaos. Just SSE. 😉

https://yagni.club/3m475dwkjvc2o?auth_completed=true

Misunderstanding SSE - YAGNI Club

On my path of practicing simple software my existing understanding of systems, protocols and tools are challenged. My mental model for SSE (Server Sent Events) was a way to keep a connection open and send updates to the client from the server. Broadly this is correct, but read on as I break down what SSE actually is to see why you may be underutilizing SSE in your applications.

Another project for #Hypermedia in #python. Hold up! It's a fork of #fasthtml. Using #datastar instead of #htmx. 😅

The difference here is how much datastar use #SSE (#ServerSentEvents). It's EVERYWHERE. Very potent stuff.

Hadn't yet tried datastar, but maybe soon with this. 😁

https://starhtml.com/

starHTML

Messages are not received if the subscriber is initially connected before the first message is sent. · Issue #3 · arizon-dread/sse

Steps to reproduce: Start a valkey/redis cache and stream instance Start SSE pointing to the cache and stream instance Connect a fresh subscribing client curl http://localhost:8080/events/test Send...

GitHub

Started to mess around with #FastHTML. I been hearing about it throughout the year, but been ignoring cause ????

Now that I'm giving a little time, it's like everything I like of minimalist #webdev converged into one. 😎

#htmx!? 😏
PicoCSS native with dropdown for #tailwindcss!? 😄
#ServerSentEvents!!? 😆
Type checked HTML !!!? 🤩
Native #SQLite support!!!!? 🤣

Basically, I am going to find use for FastHTML in one way or another. 😅

https://fastht.ml/

FastHTML

Modern web applications in pure Python

fastht.ml

Ok, anyone who cares about #ServerSentEvents / #EventSource in #Python, have a gist

https://gist.github.com/AstraLuma/bd340e1ba20613ce5c1f1b5ff552ebfb

I think I also have an old Tornado implementation I could pull out, but I honestly do not care about Tornado.

Python Server-Sent Events/EventSource Implementations

Python Server-Sent Events/EventSource Implementations - channels.py

Gist
#Mastodon doesn't have full text-search, so I built my own. Actually just a pet project to learn #NodeJS, #TypeScript and glue everything together with #Kafka and #Elasticsearch. Data is ingested in real-time via #ServerSentEvents. Visualization and search through #Kibana. I'll publish the source code over the weekend
@thomasfuchs #Ajax, #Comet, #WebSocket, #ServerSentEvents… web “pages” haven’t been fixed unchanging documents for a long time

Just tried out Turbo Streams and I'm really impressed with how it simplifies client-side updates. After playing around with it for a bit, I'm starting to get the grasp of it now. I like how it allows me to send updates to the client without refreshing the whole page.

#TurboStreams #Hotwire #WebDevelopment #JavaScript #ServerSentEvents

Backend for WitKit is in Deno, which may have been a bad idea because there is no SSE client library (as far as I can tell). I need to decide if building it myself or porting back to node would be better… #Deno #ServerSentEvents #WitKit
@glaforge @rdmueller #ServerSentEvents are particularly fun for experimenting because they don't require authorization. I tried a global stream of posts and works great! https://mastodon.social/@nurkiewicz/109365143464648452