Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiveQuery #482

Open
billyrrr opened this issue Jul 3, 2020 · 3 comments
Open

LiveQuery #482

billyrrr opened this issue Jul 3, 2020 · 3 comments
Labels

Comments

@billyrrr
Copy link

billyrrr commented Jul 3, 2020

我的用例需要在后端捕获LiveQuery流,我注意到了Java和Swift客户端使用了WebSocket来实现LiveQuery,但是Python SDK没有这方面的实现。未来有在Python SDK集成LiveQuery的计划吗?请问可以向外开放LiveQuery的rpc接口文档或者是proto文件吗?这将大大减少开发这项功能的时间并避免错误。如果可以公布RPC接口,我可能会提出LiveQuery的PR。

谢谢!

@weakish
Copy link
Contributor

weakish commented Jul 3, 2020

LiveQuery 一般是客户端应用需要的功能,Python SDK 的定位是在云引擎等服务端使用,没有支持 LiveQuery 的计划。您能具体说说为什么「需要在后端捕获LiveQuery流」么?

@billyrrr
Copy link
Author

billyrrr commented Jul 3, 2020

有三个用例:一个是event sourcing 一个是创建实时视图 还有一个比较重要的是捕获前端对数据做的更改 用delta触发后端的业务逻辑 一些用例可以看我的框架 https://github.com/billyrrr/flask-boiler

@weakish
Copy link
Contributor

weakish commented Jul 6, 2020

抱歉,目前没有公开的接口文档。您可以参考 java、swift、js SDK 的实现。有疑问也可以去 https://forum.leancloud.cn/ 交流。

(另外,当前 Python SDK 同时支持 Python 2 和 Python 3,Python 2 已经 End of Life,因此如您有意实现 LiveQuery,可以只考虑 Python 3)。

@weakish weakish added the idea label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants