coapjs / node-coap

CoAP - Node.js style
MIT License
528 stars 154 forks source link

Recreate outgoing message of observe request from serialisable data #350

Open nicgirault opened 1 year ago

nicgirault commented 1 year ago

I work on a node-coap server using coap observe feature. outgoing messages are stored in memory so that it can be used to send updated data to the clients. But having in-memory state can be problematic (here we have issues because we loose the state each time we deploy the server) so I am investigating a way to store observe connections in a redis or equivalent store and recreate outgoing message from stored data to send updates to clients. If any, what would be you recommended way to do so? Or is my problem wrong? Thanks for your help