开发者

data push using django

开发者 https://www.devze.com 2023-03-01 09:49 出处:网络
I\'m interested in doing data-push from django to flex, can this be done using pyamf (tutorials or examples are highly appreciated)?

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

精彩评论

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