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.
How do Async APIs Survive
in a REST World?
Luca Ferrari
EMEA Solution Architect
1
Past and present
2
Some of the topics I recently presented about:
Luca Ferrari
3scale ...
now Red Hat ...
now IBM
What is Async API ?
The model
3
Why Async APIs ?
4
from …
Why Async APIs ?
5
… to
Why Async APIs ?
6
example: Kafka
Kafka Strengths:
● Real Time Data Pipeline
● High-throughput
● Fault-tolerant
● Low Late...
Why Async APIs ?
7
example: Kafka
Kafka Strengths:
● Real Time Data Pipeline
● High-throughput
● Fault-tolerant
● Low Late...
What is AsyncAPI ?
AsyncAPI and Open API Spec
8
● AsyncAPI - derived from OpenAPI
● Similarities:
○ Definitions - similar s...
Why AsyncAPI ?
Features
9
❖ Being able to describe:
➢ Event-driven microservices
➢ IoT APIs
➢ Streaming APIs
❖ Some suppor...
Kafka condensed
All the moving parts
10
REST or ASYNC ?
11
Request-reply vs. event-driven
Synchronous & ephemeral
Low composability
Low tolerance to failure
Best ...
REST and ASYNC !
12
Common concerns
● API contracts
○ Differentiated levels of service
○ Security: who can consume what to...
Demo !
13
Demo setup
14
HTML5
page
Demo setup
15
HTML5
page
API
Gateway
Demo setup
16
HTML5
page
API
Gateway
API
Manager
Demo setup
17
HTML5
page
API
Gateway
API
Manager
HTTP
Bridge
AMQ
Streams
Demo setup
18
HTML5
page
API
Gateway
API
Manager
HTTP
Bridge
AMQ
Streams
Demo setup
19
HTML5
page
API
Gateway
API
Manager
HTTP
Bridge
AMQ
Streams AsyncAPI
Demo setup
20
HTML5
page
API
Gateway
API
Manager
HTTP
Bridge
AMQ
Streams AsyncAPI
NodeJS
client
Demo setup
21
HTML5
page
API
Gateway
API
Manager
HTTP
Bridge
AMQ
Streams AsyncAPI
NodeJS
client
Producer
Consumer
OpenShift Container Platform
Demo setup
22
HTML5
page
API
Gateway
API
Manager
HTTP
Bridge
AMQ
Streams AsyncAPI
NodeJS
clie...
Closing
Takeaway notes
23
▸ Difference between Sync and Async APIs
▸ Objective of AsyncAPI project
▸ Sync and Async APIs c...
Closing
Takeaway notes
24
▸ Difference between Sync and Async APIs
▸ Objective of AsyncAPI project
▸ Sync and Async APIs c...
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHat
Red Hat is the world’...
Prochain SlideShare
Chargement dans…5
×

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

628 vues

Publié le

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

Publié dans : Technologie
  • 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
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici
  • Soyez le premier à aimer ceci

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

×