Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hystrix @ Vaadin Meetup Düsseldorf

Hystrix @ Vaadin Meetup Düsseldorf

Folien zu meinem Talk auf dem 2. Vaadin Meetup in Düsseldorf vom 8.9.2016

Benjamin Wilms

September 12, 2016
Tweet

More Decks by Benjamin Wilms

Other Decks in Technology

Transcript

  1. 5

  2. 10

  3. 12 Pattern • Timeout (Hystrix) • Bulkheads (Hystrix) • Circuit

    Breaker (Hystrix) • Steady State • Fail Fast • Handshaking • Test harness • Decoupling middleware
  4. 23 Hystrix & Archaius • dynamic & typed • thread

    safe • polling framework • callback mechanism • dynamic configuration
  5. 27 Archaius & etcd // Config fallback (config.properties) and Etcd

    configuration compositeConfig = new ConcurrentCompositeConfiguration(); ClasspathPropertiesConfiguration.initialize(); // File based config // CoreOS Etcd service configuration etcdConfigSource = new EtcdConfigurationSource(etcd, "/hystrix/"); etcdConfig = new DynamicWatchedConfiguration(etcdConfigSource); compositeConfig.addConfiguration(etcdConfig,"etcd dynamic override config"); ConfigurationManager.install(compositeConfig);
  6. 34 Spring Cloud Netflix & Spring Boot @SpringBootApplication @EnableCircuitBreaker @EnableHystrixDashboard

    @Import(ArchaiusConfiguration.class) public class TransportServiceAppl { public static void main(String[] args) { SpringApplication.run(TransportServiceApp.class, args); } }
  7. 36 Zusammenfassung • Chaos Monkey aktiviert • Remote Services konfiguriert

    • Hystrix Timeouts gesetzt • Hystrix Circuit Breaker open/close • Hystrix Fallbacks deaktiviert
  8. 39