<%@ page contentType="text/html;charset=UTF-8" %> <%@ page import="org.springside.examples.showcase.demos.hystrix.web.HystrixController,com.netflix.hystrix.*,com.netflix.hystrix.HystrixCommandMetrics.HealthCounts,com.netflix.hystrix.util.*" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%! %> Web Service高级演示

Hystrix 演示

Netflix Hystrix 是一个延迟与容错类库,通过独立访问远程系统、服务和第三方库的节点,在复杂的分布式系统里停止雪崩及提供恢复能力。

演示操作

主要用户故事

其他用户故事

监控结果

<% HystrixCommandKey key = HystrixCommandKey.Factory.asKey("GetUserCommand"); HystrixCommandMetrics metrics = HystrixCommandMetrics.getInstance(key); if (metrics!=null){ HealthCounts counts = metrics.getHealthCounts(); HystrixCircuitBreaker circuitBreaker = HystrixCircuitBreaker.Factory.getInstance(key); %> <%} %>