Service Queue
When Clients send messages to Service(s), these
messages
will be put in a Queue. Once a message fails* to send to the Service
it will try again at a later stage. If this fails 10 times, the Queue will stop sending messages to the
Service because it thinks the Service is down or not working.
*= A messages fails to send if theService responds with a status code other than200
The Service should always respond with a http 200 code. It should only respond with a different
code
if they would like to receive the message another time.
For example;
- If your data storage is unreachable, you might want to receive the message at a later time to try again.
In this case you can respond with a code other than200.
Bad example;
- If you failed to parse the message and return a non
200code. This would mean that the Queue will send
the exact same message again at a later time, which will result in another non200code from the Service, which
in turn will result in another re-send from the Queue, etc etc.
Once the Service is back up, you can reset the Queue counters in your admin.parley.nu environment. You can find these counters on the Service information page in the Settings.