What DB are you using. Can it send messages? You can build a plug in
that sits on the cherrypy bus and listens to messages and then pushes
them to a SSE publisher.
For example something like
https://gist.github.com/ingoogni/169a2b8b1e484c71c95c55a2da2a65f0 to
listen to postgreSQL and something like this to publish the messages:
https://gist.github.com/ingoogni/a7f7c0fed9e96b3545e9a8c6139d80b0
On 18-12-2019 03:23, 北美38fule wrote:
> I am a newbie in cherrypy. I've done some research on google but didn't
> get much helpful information.
> Could someone please point out if cherrypy allows me to write a simple
> server that has long-polling enabled path?
> The scenario is like: whenever the database on backend has some updated
> information, it sends signals to the frontend to updates all relevant
> display accordingly.
>
> Is this achievable using cherrypy? Or I will need tornado-like
> framework? Could someone also point out a newbie-friendly tutorial for
> this purpose? Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "cherrypy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cherryp...@googlegroups.com
> <mailto:cherrypy-users+unsub...@googlegroups.com>.