I'm working on an app which uses a queue to push operations to backend. The queue is necessary because internet might not be available and the queue needs to be run again next time internet is available.
Is there some examples of implementing this? I am looking for something simple, but extensible enough. What I am looking for is how to design components like the queue, queue processor\dispatcher, handling errors (remove operation from the queue when server responds with specific HTTP codes, rescheduling the queue in care of other types of errors, etc.).
At least, I'm looking for some direction to which kind of design pattern I should be using.
Aucun commentaire:
Enregistrer un commentaire