Say you want to protect your Spring-based service with
With Kite that's no problem.
<?xml version="1.0" encoding="UTF-8"?> <beans ...> <kite:annotation-config /> <kite:circuit-breaker id="circuitBreaker" exceptionThreshold="3" timeout="30000" /> <kite:concurrency-throttle id="concurrencyThrottle" limit="50" /> <kite:rate-limiting-throttle id="rateLimiter" limit="5000" /> </beans>
@Service @Transactional public class MessageServiceImpl implements MessageService { @GuardedBy({ "concurrencyThrottle", "rateLimiter", "circuitBreaker" }) public List<Message> getMessages() { ... } }