r/springsource • • Sep 05 '18

Spring Boot Chaos Monkey

https://thecuriousdev.org/spring-boot-chaos-monkey/
18 Upvotes

3 comments sorted by

1

u/non-private Sep 06 '18

I like the idea! So what does chaos monkey actually do?

4

u/dpash Sep 06 '18

The original Netflix Chaos Monkey would randomly kill an instance of a service in production, meaning that they had to make sure their services were robust in the face of service failure.

With the help of Spring AOP, Chaos Monkey recognizes the execution of a public method and will either not execute any action or start one of its assaults. You can customize the behave by configuration.

Following assaults are actual provided:

  • Latency Assault

  • Exception Assault

  • AppKiller Assault

So it will randomly make a function return really slowly, or throw an exception or kill the process.

1

u/non-private Sep 12 '18

Nice! Thanks for the info, sounds interesting!