Chatbot using Django Channels. Persist a python object in a scope?

2018-06-09 Thread Rithwik Cherian
Hello all, Very excited to discover the Channels project. I think it could be exactly what I was looking for. I am going through the documentation and seeing how it works right now, but I would really appreciate if someone could tell me if it will help me do what I want. I am making a chatbot,

Re: Chatbot using Django Channels. Persist a python object in a scope?

2018-06-10 Thread Rithwik Cherian
his allows you to easily > scale and also recover state if your app process stops. > > On June 9, 2018 1:01:14 AM CDT, Rithwik Cherian > wrote: >> >> Hello all, >> >> Very excited to discover the Channels project. I think it could be >> exactly what I was looki

Re: Chatbot using Django Channels. Persist a python object in a scope?

2018-06-10 Thread Rithwik Cherian
imes get garbage collected after an idle > period with no communication. You should think about this even for > WebSocket; what happens if the user's socket reconnects? Does the state > machine reset? If not, you need to store state somewhere externally from > the socket handli