Przeglądaj źródła

update user guide

master
Savorboard 5 lat temu
rodzic
commit
711c4638c8
1 zmienionych plików z 0 dodań i 8 usunięć
  1. +0
    -8
      docs/user-guide/implementation.md

+ 0
- 8
docs/user-guide/implementation.md Wyświetl plik

@@ -9,20 +9,12 @@ After initialized, CAP will create two tables in the client side,they are `Cap.P

**Cap.Received**:Used to Store messages(subscribed by the `CapSubscribe[]`) subscribed by the MQ(message Queue) client side that CAP received.


> Before version 2.2 :
**Cap.Queue**:A temporary table that CAP used to deal with published and received messages,under most circumstances(there aren't any errors),it is an empty table.

Both `Published` and `Received` tables have a `StatusName` field,which is used to mark the status of the current message.Until now it has `Scheduled`,`Successed` and `Failed` statuses.

> Statuses before version 2.2:`Scheduled`,`Enqueued`,`Processing`,`Successed` and `Failed`.

In the process of dealing with messages,CAP will change the status from `Scheduled` to `Successed`(or `Failed` ).if the final status is `Successed`,it means that the message is sent to MQ successfully,and `Failed` means the message is failed to sent to MQ.

Version later than 2.2, CAP will retry after 4 minutes if the status is `Scheduled` or `Failed`,the retry interval is default to 60 seconds.You can change it by modify `FailedRetryInterval` in `CapOptions`.

>Before version 2.2,CAP retry 100 times for `Failed` messages by default.

## Message format

CAP use JSON to transfer message,the following is CAP's messaging object model:


Ładowanie…
Anuluj
Zapisz