This question is related to this project.
I have to send device information in json format to a server. However, I’m concerned about what will happen if i can’t connect to the remote server? I don’t want to loose data, so I thought that each datum could be in a queue. A connection thread could parse the queue and send data to server. In my opinion this is a better solution than having a connection thread which sends data directly. Am I correct?
Something like a queue is always suitable to decouple things. Especially when the processing of data can be deferred. A queue implementation like RabbitMQ is transactional so you it will integrate nicely into a system where transactional integrity is a must.