TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Telegraphy: Real-time events for WSGI Python applications

62 点作者 fisadev超过 11 年前

5 条评论

nkuttler超过 11 年前
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 未加载
jaegerpicker超过 11 年前
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 未加载
akoumjian超过 11 年前
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 未加载
andyl超过 11 年前
Is there something like this for Rails?
评论 #6890902 未加载
dlitvakb超过 11 年前
Congratulations to my friends from machinalis for making it to the top of HN!