Skip to content

Commit 6217397

Browse files
committed
updated readme
1 parent 44502b3 commit 6217397

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ As per best practices, code implement a retry logic to make sure connections to
170170

171171
The sample uses the [Tenacity](https://tenacity.readthedocs.io/en/latest/) library to implement a simple retry-logic in case the error "Communication link failure" happens (see [ODBC Error Codes](https://docs.microsoft.com/en-us/sql/odbc/reference/appendixes/appendix-a-odbc-error-codes))
172172

173+
To test connection resiliency you can using testing tools like [Locust.io](https://locust.io/), [K6](https://k6.io/) or [Apache JMeter](https://jmeter.apache.org/). IF you want something really simple to try right away, a while loop will do. For example:
174+
175+
```bash
176+
while :; do curl -s -X GET http://localhost:5000/customer/123; sleep 1; done
177+
```
178+
173179
## Learn more
174180

175181
If you're new to Python and want to learn more, there is a full free Python curse here:

0 commit comments

Comments
 (0)