Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

APIdays Paris 2019 - How Do Async APIs Survive in a Rest World? by Luca Ferrari, Red Hat

860 visualizaciones

Publicado el

How Do Async APIs Survive in a Rest World?
Luca Ferrari, EMEA Senior Solution Architect at Red Hat

Publicado en: Tecnología
  • Today, I want to share with you my own "unfair advantage" ... An honest crack at an insider's edge that's so effective it's nothing less than performance enhancing for your own bottom line profits! ★★★ http://t.cn/A6hP86vM
       Responder 
    ¿Estás seguro?    No
    Tu mensaje aparecerá aquí

APIdays Paris 2019 - How Do Async APIs Survive in a Rest World? by Luca Ferrari, Red Hat

  1. 1. How do Async APIs Survive in a REST World? Luca Ferrari EMEA Solution Architect 1
  2. 2. Past and present 2 Some of the topics I recently presented about: Luca Ferrari 3scale ... now Red Hat ... now IBM
  3. 3. What is Async API ? The model 3
  4. 4. Why Async APIs ? 4 from …
  5. 5. Why Async APIs ? 5 … to
  6. 6. Why Async APIs ? 6 example: Kafka Kafka Strengths: ● Real Time Data Pipeline ● High-throughput ● Fault-tolerant ● Low Latency  ● Scalability  Kafka Limits: Kafka is not optimized to provide API consumers with friendly access to real time data. Difficult to expose and re-use API oriented tools for Kafka
  7. 7. Why Async APIs ? 7 example: Kafka Kafka Strengths: ● Real Time Data Pipeline ● High-throughput ● Fault-tolerant ● Low Latency  ● Scalability  Kafka Limits: Kafka is not optimized to provide API consumers with friendly access to real time data. Difficult to expose and re-use API oriented tools for Kafka
  8. 8. What is AsyncAPI ? AsyncAPI and Open API Spec 8 ● AsyncAPI - derived from OpenAPI ● Similarities: ○ Definitions - similar schemas ○ Well-defined set of operations (HTTP methods vs publish/subscribe) ○ Similar security models for web interactions ● Differences ○ Semantic differences between clients (publisher/subscriber vs client/server) ○ Different concepts (e.g. cookies) ○ Different data payloads
  9. 9. Why AsyncAPI ? Features 9 ❖ Being able to describe: ➢ Event-driven microservices ➢ IoT APIs ➢ Streaming APIs ❖ Some supported protocols: ➢ MQTT ➢ AMQP ➢ WebSocket ➢ Kafka ➢ Stomp ➢ NATS ➢ HTTP ➢ JMS
  10. 10. Kafka condensed All the moving parts 10
  11. 11. REST or ASYNC ? 11 Request-reply vs. event-driven Synchronous & ephemeral Low composability Low tolerance to failure Best practices evolved as REST Asynchronous and persistent Decoupled Highly composable High tolerance to failure Best practices are still evolving
  12. 12. REST and ASYNC ! 12 Common concerns ● API contracts ○ Differentiated levels of service ○ Security: who can consume what topic, what operation ● Ease of consumption ○ Search a catalog of Topics, labels ○ ‘Try it out’s for data formats ● Monitoring, Analytics ● Monetization ○ What to price? ○ Who does what today?
  13. 13. Demo ! 13
  14. 14. Demo setup 14 HTML5 page
  15. 15. Demo setup 15 HTML5 page API Gateway
  16. 16. Demo setup 16 HTML5 page API Gateway API Manager
  17. 17. Demo setup 17 HTML5 page API Gateway API Manager HTTP Bridge AMQ Streams
  18. 18. Demo setup 18 HTML5 page API Gateway API Manager HTTP Bridge AMQ Streams
  19. 19. Demo setup 19 HTML5 page API Gateway API Manager HTTP Bridge AMQ Streams AsyncAPI
  20. 20. Demo setup 20 HTML5 page API Gateway API Manager HTTP Bridge AMQ Streams AsyncAPI NodeJS client
  21. 21. Demo setup 21 HTML5 page API Gateway API Manager HTTP Bridge AMQ Streams AsyncAPI NodeJS client Producer Consumer
  22. 22. OpenShift Container Platform Demo setup 22 HTML5 page API Gateway API Manager HTTP Bridge AMQ Streams AsyncAPI NodeJS client
  23. 23. Closing Takeaway notes 23 ▸ Difference between Sync and Async APIs ▸ Objective of AsyncAPI project ▸ Sync and Async APIs can play together
  24. 24. Closing Takeaway notes 24 ▸ Difference between Sync and Async APIs ▸ Objective of AsyncAPI project ▸ Sync and Async APIs can play together Go out and be part of the community ! https://github.com/strimzi https://github.com/asyncapi
  25. 25. linkedin.com/company/red-hat youtube.com/user/RedHatVideos facebook.com/redhatinc twitter.com/RedHat Red Hat is the world’s leading provider of enterprise open source software solutions. Award-winning support, training, and consulting services make Red Hat a trusted adviser to the Fortune 500. Thank you 25

×