When Java EE Is Too Fast--You Need Snail

snail is apache-licensed library ...which artificially slows down your JAX-RS 2.X endpoints.

Snail makes it easy to test your bulkheads and circuit breaker configurations.

Installation:


 <dependency>
     <groupId>com.airhacks</groupId>
     <artifactId>snail</artifactId>
     <version>[RECENT_VERSION]</version>
 </dependency>

Configuration:

  1. Set property with: snail-slowdown-in-ms=[DELAY IN MS].
  2. Override the system property with an equally-named header.

See also: github.com/AdamBien/snail

Java EE is too fast -- so we need snail :-)

See you at Java EE Workshops at Munich Airport, Terminal 2 and particularly at Java EE 7 Microservices. Also checkout airhacks.io -- workshops on demand.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Also a terrific way of flushing out flaky frontend tests, that should be waiting but aren't, if you have a lot of JavaScript that talks to a Java EE backend

Posted by Mr Art on January 14, 2016 at 08:22 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License