Live event notification through ASGI / websockets

26 views
Skip to first unread message

Nick Beeuwsaert

unread,
Sep 25, 2020, 4:39:27 AM9/25/20
to pylons-discuss
Hello,

I was wondering if anyone had any experience / ideas regarding using Pyramid and ASGI to deliver live notifications through a websocket stream?

I've followed the info here, regarding getting ASGI set up and have a working websocket now. I just need help notifying any connected websockets of events.

So far I've tried pushing to an asyncio queue, but I could just be using queues wrong.

Curious if anyone has any ideas for this

Mikko Ohtamaa

unread,
Sep 25, 2020, 6:24:14 AM9/25/20
to pylons-...@googlegroups.com
Hi,

I cannot answer your question, but I have two ideas about what might or might not help your use case.

- What I have seen many projects doing is to handle notifications via Firebase https://firebase.google.com/ - both web and mobile - this is because Firebase is "proven" and also supports native mobile app notifications easily

- getstream.io provides activity feed tyle notifications as a SaaS service. I think they started as an open source Python project long time ago, but now have only Saas model https://getstream.io/

Br,
Mikko

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/6b902987-f86b-48ee-b24d-5f66259bef4fo%40googlegroups.com.

Nick Beeuwsaert

unread,
Sep 25, 2020, 9:19:46 PM9/25/20
to pylons-discuss
Thanks for the suggestions. I should've mentioned that I wanted to keep it local, since this is a small project mostly intended for familiarizing myself with asgi. I was thinking of "cheating" and using redis, but I actually looked a few posts down in this mailing list and found this excellent library https://gitlab.com/landreville/rbow so I've been reading through that to understand it


On Friday, September 25, 2020 at 5:24:14 AM UTC-5, Mikko Ohtamaa wrote:
Hi,

I cannot answer your question, but I have two ideas about what might or might not help your use case.

- What I have seen many projects doing is to handle notifications via Firebase https://firebase.google.com/ - both web and mobile - this is because Firebase is "proven" and also supports native mobile app notifications easily

- getstream.io provides activity feed tyle notifications as a SaaS service. I think they started as an open source Python project long time ago, but now have only Saas model https://getstream.io/

Br,
Mikko

On Fri, 25 Sep 2020 at 10:39, Nick Beeuwsaert <nick.be...@gmail.com> wrote:
Hello,

I was wondering if anyone had any experience / ideas regarding using Pyramid and ASGI to deliver live notifications through a websocket stream?

I've followed the info here, regarding getting ASGI set up and have a working websocket now. I just need help notifying any connected websockets of events.

So far I've tried pushing to an asyncio queue, but I could just be using queues wrong.

Curious if anyone has any ideas for this

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-...@googlegroups.com.

Chris May

unread,
Sep 26, 2020, 4:16:13 PM9/26/20
to pylons-...@googlegroups.com
Thanks for the heads up about rbow. 

I have heard of others using autobahn before asgi. 


On Sep 25, 2020, at 9:19 PM, Nick Beeuwsaert <nick.be...@gmail.com> wrote:


To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/a399c497-64db-4ddf-a7c9-5cbba1305a7ao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages