I recently talked with @bbelderbos
about #eventSourcing, #dataStar, and other thoughts that have transformed how I write code today.
https://t.co/wdnkWRHfE6
I just ran an experiment rendering a status page that includes a table of 200 items pulled from the database.
Option A: streaming HTML that is generated on the fly
Option B: Load the shell and leverage #DataStar and Server-Sent Events to populate the table and related data.
Lighthouse reports that the SSE version renders in half the time as the streamed HTML.
This is not what I was expecting.
Fascinating to see that in this instance that SSE is so much faster.
Bookmark this top-notch article on htmx and datastar! Code examples, a narrative, and clear writing
My takeaway: If you are using htmx and you feel like you're putting too many of your front-end controls in the html, datastar is probably the perfect hypermedia solution for you
I finally pushed publish on why I moved from HTMX to Datastar.
https://t.co/CXGnRbUBfS
I'd love to know your thoughts!
#htmx#DataStar#Python#webComponents
While I am not using this package in production, I learned a **LOT** from creating toy projects with it.
Let me know what questions you have lingering from my series. I'll answer them in another post.
It's been a few months since I posted, but I just published article 5 of my intro to event sourcing blog series!
In it, I show you how to get started with event sourcing by using the eventsourcing PYPI package.
https://t.co/GwEl4J91ab
#eventSourcing#python
My talk at FlaskCon is up!
In this 20-minute talk, I share how three of my favorite attributes of event sourcing can empower reactive web apps that are better than the status quo.
I added a duration column and regenerated the view from past events. Seeing the data appear through the #HTMX powered Server-Sent Events connection was fun.
Event sourcing made answering their question simple, going back to the first file we processed.
I had a win highlighting why I have been excited about #eventSourcing.
My project processes files in multiple phases, and I built a status page to track progress. It became apparent that the team needed to know how long each file took.
@all__hype FWIW, you can also leverage server-sent events with HTMX. I'm doing that on my current project as a step to prepare for trying out data-star.
@all__hype From your interview with Delany, I realized one could return an event stream from any request, so I have an element that tells HTMX to connect to the SSE stream. That function yields HTML updates to that element (in an event stream format) and OOB swaps.