开发者

data push using django

I'm interested in doing data-push from django to flex, can this be done using pyamf (tutorials or examples are highly appreciated)?

I 开发者_如何学运维would like to do it in such a way that when something is changed in the database, the client are notified of that change.


I haven't done it, and it looks difficult.

What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?

PyAMF gives you the tools to send and receive AMF messages in Python.

But Django isn't suited to push, as normally for push you'd use socket connections rather than HTTP.

Which probably means having a Twisted server as well. You could still use Django... you'd maybe have signals code in your models telling the Twisted server to send a message back to the Flex client.

You'd still have to write all the data-binding type code yourself on the Flex side, though PyAMF provide example client code to get you started.

Apparently the Java frameworks for Flex do code generation for both sides, making it all much easier.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜