Flask Socket.io in plugin

Have you already tried to integrate Flask socket.io into the Indico system? Especially when developing a plugin?

If yes, is there a special procedure?

No, we haven’t tried that yet and don’t plan to since AFAIK it “wastes” one uWSGI worker slot for each active connection.

Assuming you only need to send push messages but not have an actual bidirectional websocket connections, maybe using this uWSGI magic could help - in fact this is what I’d probably add to Indico as soon as we have a usecase for it:

The idea there is to have a tiny WSGI app that’s offloaded to uWSGI and then using redis’ pub-sub feature to send messages to it.

1 Like

I remember seeing something about “chat” in one of your previous questions… if you develop an event chat I’d seriously consider splitting the actual chat functionality in a separate webapp and making the plugin just embed it. That way you don’t have to add all this complexity to Indico itself.

1 Like