Session collections

10 views
Skip to first unread message

Melvin Gilberto

unread,
Dec 30, 2019, 6:02:30 PM12/30/19
to OpenVidu
Hello, I am using Openvidu in a project using Spring boot, currently in the tutorials they save all the sessions in a variable I wanted to know if this is the best way to save the sessions.
I currently have an administrative panel where I can see the sessions created through these collections, but sometimes users just close the transmission and the variable that maps the sessions keeps storing all the data. Therefore, sometimes the CPU consumes many resources until it restarts.

I would like to know what can be done in this case, thank you very much.

Micael Gallego

unread,
Jan 2, 2020, 6:55:19 AM1/2/20
to Melvin Gilberto, OpenVidu
You save sessions in backend app memory for convenience. 

But if you want to implement an application more fault tolerant, you can save session information in external storage like Redis or simply get sessions [1] from OpenVidu server on restart.

Best regards

[1] https://openvidu.io/docs/reference-docs/REST-API/#get-apisessions

Micael Gallego
Kurento / OpenVidu Project Lead


--
You received this message because you are subscribed to the Google Groups "OpenVidu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/b81707cc-4a8a-45e8-8c60-01b789be0788%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages