TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Telegraphy: Real-time events for WSGI Python applications

62 pointsby fisadevover 11 years ago

5 comments

nkuttlerover 11 years ago
I think this link <a href="http://telegraphy.readthedocs.org/en/latest/intro.html" rel="nofollow">http:&#x2F;&#x2F;telegraphy.readthedocs.org&#x2F;en&#x2F;latest&#x2F;intro.html</a> is far more informative than op&#x27;s. I had no idea what telegraphy was after reading the posted link.
评论 #6889045 未加载
jaegerpickerover 11 years ago
This seems to really help bridge a gap in django&#x27;s toolbox. Working with async actions with pretty much anything other than celery processes is pretty painful. That said I&#x27;m not sure I&#x27;m a huge fan of tying the events directly to the models, I think I&#x27;d rather be able to define the events separately and call the event-firing methods via on save &#x2F; on delete model methods if I wanted to the model to fire events. Seems a lot more flexible to break that apart so I can reuse the events or fire those events from somewhere other the models if needed. I bet there is a way to do this already in the project I just haven&#x27;t had enough time to piece it together yet.
评论 #6892552 未加载
评论 #6889167 未加载
akoumjianover 11 years ago
Sounds cool. I have also been thinking about developing a ready-made Django skeleton with an architecture similar to this. Our publishing looks like this: Django -&gt; Redis -&gt; Express.js -&gt; Browser<p>Redis really just serves as our bridge, the actual pub&#x2F;sub happens in socket.io in the express app. The coolest part of this is that when a Django model is updated, we serialize it to its API representation, send that through the wire. On the client, the Backbone model is bound to this event and updates in place.
评论 #6889184 未加载
andylover 11 years ago
Is there something like this for Rails?
评论 #6890902 未加载
dlitvakbover 11 years ago
Congratulations to my friends from machinalis for making it to the top of HN!