Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

Asynchronous Microservices in nodejs Slide 1 Asynchronous Microservices in nodejs Slide 2 Asynchronous Microservices in nodejs Slide 3 Asynchronous Microservices in nodejs Slide 4 Asynchronous Microservices in nodejs Slide 5 Asynchronous Microservices in nodejs Slide 6 Asynchronous Microservices in nodejs Slide 7 Asynchronous Microservices in nodejs Slide 8 Asynchronous Microservices in nodejs Slide 9 Asynchronous Microservices in nodejs Slide 10 Asynchronous Microservices in nodejs Slide 11 Asynchronous Microservices in nodejs Slide 12 Asynchronous Microservices in nodejs Slide 13 Asynchronous Microservices in nodejs Slide 14 Asynchronous Microservices in nodejs Slide 15 Asynchronous Microservices in nodejs Slide 16 Asynchronous Microservices in nodejs Slide 17 Asynchronous Microservices in nodejs Slide 18 Asynchronous Microservices in nodejs Slide 19 Asynchronous Microservices in nodejs Slide 20 Asynchronous Microservices in nodejs Slide 21 Asynchronous Microservices in nodejs Slide 22 Asynchronous Microservices in nodejs Slide 23 Asynchronous Microservices in nodejs Slide 24 Asynchronous Microservices in nodejs Slide 25 Asynchronous Microservices in nodejs Slide 26
Upcoming SlideShare
Microservices with Node.js and RabbitMQ
Next
Download to read offline and view in fullscreen.

27 Likes

Share

Download to read offline

Asynchronous Microservices in nodejs

Download to read offline

Nodeconf Barcelona 2015 presentation exploring several ways of building microservices in an asynchronous way. Presented the concept of a broker as an alternative to a multiple point-to-point architecture.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Asynchronous Microservices in nodejs

  1. 1. Bruno Pedro November 2015 Asynchronous Microservices in node.js
  2. 2. Summary • why microservices • synchronous vs asynchronous topologies • broker approach • code examples • patterns
  3. 3. Why Microservices • organised around business capabilities • following a decentralised governance • and a decentralised data management • automated infrastructure • designed for failure
  4. 4. in Martin Fowler, "Microservices"
  5. 5. Microservices • loosely coupled • with a specific responsibility • designed around business needs • connected through a common interface
  6. 6. H TTP HTTP HTTP HTTP
  7. 7. Synchronous
  8. 8. Latency
  9. 9. Asynchronous
  10. 10. Asynchronous
  11. 11. Complexity
  12. 12. SMTP A A Broker
  13. 13. SMTP A B C D E A B D C E
  14. 14. Really?
  15. 15. AMQP • Advanced Message Queueing Protocol • interoperable: loosely coupled clients and servers • advanced publish and subscribe • transactional, if needed
 • supported by node.js
  16. 16. AMQP
  17. 17. AMQP amqplib
  18. 18. amqplib var amqp = require('amqplib/callback_api'); amqp.connect('amqp://localhost', function(err, conn) { conn.createChannel(function(err, ch) { var q = 'hello'; ch.assertQueue(q, {durable: false}); ch.sendToQueue(q, new Buffer('Hello World!')); console.log(" [x] Sent 'Hello World!'"); }); }); in RabbitMQ Tutorials
  19. 19. amqplib var amqp = require('amqplib/callback_api'); amqp.connect('amqp://localhost', function(err, conn) { conn.createChannel(function(err, ch) { var q = 'hello'; ch.assertQueue(q, {durable: false}); console.log(" [*] Waiting for messages in %s.", q); ch.consume(q, function(msg) { console.log(" [x] Received %s”, msg.content.toString()); }, {noAck: true}); }); }); in RabbitMQ Tutorials
  20. 20. AMQP HTTP Webhook
  21. 21. Patterns • work queue • pubsub system • webhook • message routing • backpressure • RPC
  22. 22. Asynchronous Microservices • loosely coupled • agile to changes • event based • organised around business capabilities • connected through the message broker AMQP
  23. 23. Wrap-up • microservices advantages • asynchronous over synchronous • broker approach • easy to implement • patterns
  24. 24. + Sean O’Connor Lead Engineer It's great to see a tool like API Changelog come along. (…) as an API provider, it's always a challenge to communicate to users when changes happen. bpedro@apichangelog.com Get in touch! Bruno Pedro Thank you
  • PaigeNielsen1

    Nov. 25, 2021
  • scalder27

    Aug. 23, 2017
  • mleybo

    Jan. 11, 2017
  • roshanpaiva

    Dec. 16, 2016
  • DaraghOShea1

    Mar. 23, 2016
  • joobn

    Mar. 1, 2016
  • gboissinot

    Feb. 28, 2016
  • HoaiNinh

    Feb. 27, 2016
  • alquesada

    Dec. 26, 2015
  • ssuser111604

    Dec. 11, 2015
  • ptraca

    Dec. 8, 2015
  • freejoe

    Dec. 3, 2015
  • sigmadream

    Dec. 1, 2015
  • YunhyukPark

    Nov. 30, 2015
  • onlyAbout

    Nov. 30, 2015
  • ssuserf2cb68

    Nov. 30, 2015
  • yeongmin

    Nov. 30, 2015
  • architectj

    Nov. 30, 2015
  • seohoseok14

    Nov. 29, 2015
  • eces

    Nov. 29, 2015

Nodeconf Barcelona 2015 presentation exploring several ways of building microservices in an asynchronous way. Presented the concept of a broker as an alternative to a multiple point-to-point architecture.

Views

Total views

7,670

On Slideshare

0

From embeds

0

Number of embeds

718

Actions

Downloads

53

Shares

0

Comments

0

Likes

27

×