Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Reactive microservices with play and akka

1 573 vues

Publié le

ScalaMatsuri 2016 talk by Christopher Hunt
http://scalamatsuri.org/

Publié dans : Logiciels
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Reactive microservices with play and akka

  1. 1. Reactive Microservices Making Microservices Reactive using Play & Akka Scala Matsuri Christopher Hunt @huntchr
  2. 2. 5 Minute Microservices 2 Reactive Microservices http://www.reactivemanifesto.org/ It’s for Developers AND Operations • Resiliency • The system stays responsive in the face of failure • Elasticity • The system stays responsive under varying workload
  3. 3. 5 Minute Microservices 3 Example Problem • Customer Microservice • Create • Retrieve • Persisting to Datastore • Local Caching
  4. 4. Let’s Do This!
  5. 5. It’s a Microservice!
  6. 6. 5 Minute Microservices 6 But is it Reactive? • Resilient • What happens if/when our Datastore fails? • Elastic • How do we scale out? • Cache Management • How to maintain the cache across multiple nodes?
  7. 7. 5 Minute Microservices 7 Solution • Cluster our Datastore • Postgres BDR • https://github.com/huntc/postgres-bdr • Run on multiple nodes • Deploy to ConductR • https://conductr.typesafe.com/ • Signal for cache updates • Akka Data Replication • https://github.com/patriknw/akka-data-replication
  8. 8. 5 Minute Microservices 8 What is ConductR? ConductR is a solution for deploying and managing reactive applications across a cluster of machines.
  9. 9. Make This Reactive!
  10. 10. 5 Minute Microservices 10 Reactive Solution Checklist ✓ Resilient ✓ Postgres node failure ✓ Elastic ✓ Scale out Customer and Postgres ✓ Blue/Green Rolling Upgrade ✓ Cache Management ✓ Replicate across nodes
  11. 11. Questions?
  12. 12. Thank you! Christopher Hunt @huntchr

×