You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|*connecting*| Your application is now attempting to connect to dataBridges network. |
197
198
|*connected*| The connection to dataBridges network is open and authenticated with your `appkey`. |
198
199
|*connection_break*| Indicates a network disconnection between application and dataBridges network. The library will initiate an automatic reconnection, if the reconnection property is set as true. |
199
-
|*connect_error*|The dataBridges network connection was previously connected and has now errored and closed. |
200
+
|*connect_error*|This event will show system messages related to dataBridges network as well as Rate-limit exceptions (details in Rate-limit section). |
200
201
|*disconnected*| The application is now disconnected from the dataBridges network. The application will than need to initiate fresh connection attempt again. |
201
202
|*reconnecting*| Your application is now attempting to reconnect to dataBridges network as per properties set for reconnection. |
202
203
|*reconnect_error*| Reconnection attempt has errored. |
|DBNET_CF_CALL|ERR_CALLEE_QUEUE_EXCEEDED| No new cf calls are being routed by the dataBridges network to the application because the application's current cf processing queue has already exceeded. <br />Each application connection cannot exceed cf.queue.maximum. Refer to management console documentation for cf.queue.maximum details. |
2045
2046
2047
+
## Rate Limit and Concurrent connection
2048
+
2049
+
dataBridges implements both messages rate-limiting andmax number of concurrent connections.
2050
+
2051
+
### Messages rate-limits
2052
+
2053
+
Messages rate-limits are applicable at socket connection level and at overall level (aggregate messages consumption). For sockets message the rate limits are at per second and per minute level whereas overall rate-limit is at per hour, per day, per month level.
2054
+
2055
+
- Check your account limits to understand what rate-limits are applicable to you or contact your account manager.
2056
+
- Default socket level rate limits are 10 messages / second per connections.
2057
+
2058
+
#### What happens when the rate limit is exceeded?
2059
+
2060
+
Once the rate-limit is exceeded, all further channel messages as well asRPCandCF calls are not processed by the system.
2061
+
2062
+
>*Note:* Do note publishing messages or executing RPCandCF calls post rate-limit exceeding will increase your message consumption.
2063
+
2064
+
##### Events you can bind to get notified about rate-limit exceeded and restored
2065
+
2066
+
The connectionstatus object allows you to bind for event `connect_error`.
2067
+
When the rate-limit is exceeded or restored you will get the following payload.code
2068
+
2069
+
-`ERR_socket_ratelimit_exceeded`
2070
+
-`ERR_ratelimit_exceeded`
2071
+
-`ERR_ratelimit_restored`
2072
+
2073
+
Take a look at the attached code-set to manage how to get notified about limit exceeded conditions.
2074
+
2075
+
##### What is rate limit restored?
2076
+
2077
+
When overall rate-limits are exceeded (hour, day, month), system will notify rate-limit restored once the new time-window is entered. Do note, rate limit restored isnot sent for per second and per minute rate-limiters.
2078
+
2079
+
### Concurrent Connection limits
2080
+
2081
+
Each purchase has an concurrent limit connection. *Check your account limits to understand what concurrent connections limits are applicable to you or contact your account manager.*
2082
+
2083
+
#### What happens when the concurrent connection limit is exceeded?
2084
+
2085
+
The system will disconnect excess connection and before that it will send a notification to the connection that the limit has been exceeded and the connection will be closed.
2086
+
2087
+
<h4> Events you can bind to get notified about concurrent connection limit exceeded </h4>
2088
+
2089
+
The connectionstatus object allows you to bind for event `connect_error`.
2090
+
When the concurrent connection limit is exceeded you will get the following payload.code
2091
+
2092
+
-`ERR_concurrent_connection_limit`
2093
+
2094
+
Take a look at the attached code-set to manage how to get notified about limit exceeded conditions.
2095
+
2096
+
### Code-set to get notified and take further action
2097
+
2098
+
You can add the below code-set to your program to get notified and take further action.
0 commit comments