r/programming • • Apr 15 '18

Chaos Monkey for Spring Boot

https://codecentric.github.io/chaos-monkey-spring-boot/
44 Upvotes

4 comments sorted by

1

u/yturijea Apr 15 '18

Now on the topic. We are having internal issues with connection timeouts for half closed connections.

Is it general practice to always have retries even for internal networking?

I would think it is, but other have different opinions, so what is the general opinion here?

2

u/_101010 Apr 15 '18 edited Apr 15 '18

What do you mean by internal networking?

Everything that is not part of your application should be considered external.

Your application is not supposed to assume where any of the backing services (database, message queue, etc) or other services it interacts with are hosted.

In my experience it is beneficial to use retry with any part of the code that is not executing fully locally.

1

u/yturijea Apr 15 '18

We have a setup with a few components talking together as part of that product. So in those terms we have internal and external. Where internal is other parts in that product.

But yes I agree with you on that.

1

u/[deleted] Apr 16 '18

We had that problem once. Proper use of the HTTP keep alive header (specifically, specifying the server's timeout) helped resolve it. I'd look into the documentation of your load balancer (or the server itself, if you don't use one) and see how to set the timeout value on the response.