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.

MQ Light for WTU

3,556 views

Published on

session A35: from WebSphere Technical University

  • Be the first to comment

MQ Light for WTU

  1. 1. A35: IBM MQ Light Robert Nicholson, STSM for Application Messaging @nicholsr #mqlight
  2. 2. © 2014 IBM Corporation Please Note IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here. 2
  3. 3. © 2014 IBM Corporation IBM Messaging portfolio 3 Deliver Messaging Backbone for Enterprise Focus on traditional MQ values, rock-solid enterprise-class service, ease-of-operation, breadth of platform coverage, availability, z/OS exploitation Capture Big Data from Mobile and Internet of Things Focus on Internet-scale events, m2m device enablement, security and privacy, feed into real-time analytics, location-based notifications Enable developers to build more scalable, responsive applications Focus on application developer use cases, breadth of language support, no administration, ease-of-deployment, lightweight & powerful API, as software or a cloud service
  4. 4. © 2014 IBM Corporation MQ Light : Software and Cloud  Messaging that application developers will love to use, helping them make responsive applications that scale easily  Available as software download or full cloud service in Bluemix. – Statement of Direction for support in MQ Version 8.  Trivial to get started : just download, unzip and start coding  Open APIs crafted to feel natural in a growing range of popular languages  Tooling that makes modular app development easy 4
  5. 5. © 2014 IBM Corporation The journey that got us here…  Previous developer / IT relationship – Driven by centrally controlled common standards – Carefully planned projects delivering core business systems – Focused on re-using existing skills and investments 5 Share, re-use and save! I need to access some messaging services. I own the apps.
  6. 6. © 2014 IBM Corporation The journey that got us here…  Evolving developer / IT relationship – Driven by business sponsor demands – Developers download and use the tools to get the job done – Focused on trying new apps and concepts in the market 6
  7. 7. © 2014 IBM Corporation The journey that got us here… 7 Ruby Python Node.js C Java C++ C# Perl Go Clojure Lua Erlang Scala PHP
  8. 8. © 2014 IBM Corporation Use Cases 8 Worker Offload Intensive work offloaded and distributed amongst worker processes to be performed asynchronously - Processing images or videos - Performing text analytics Event Driven Take one or more actions when something interesting happens - Email logs and update dashboards when build finishes - Upload videos once finished transcoding
  9. 9. © 2014 IBM Corporation Use Cases 9 Delayed Processing Schedule a task to happen at a specific point in time - Run in detailed reports when app use is low - Generate end of day summary 3rd Party Integration Ensure applications remain responsive even when 3rd party system are not available or responding fast enough - Updating existing CRM system - Booking appointment
  10. 10. © 2014 IBM Corporation Making applications more responsive and easier to scale User Waits 10
  11. 11. © 2014 IBM Corporation Making applications more responsive and easier to scale User Waits 11
  12. 12. © 2014 IBM Corporation Easy to get going  Download and get coding within 5 minutes  No administration; just code and go  Node API client libraries installed using npm package manager  Tutorials and examples in their languages, relevant to actual use 12
  13. 13. © 2014 IBM Corporation Tooling to assist development  Used to answer questions like : – Where did this message come from? – Where did that message go? – What messages has my app consumed? 13
  14. 14. … © 2014 IBM Corporation Does not restrict language choice  Polyglot language  API crafted to feel native within the language  New clients can be created by developers – Clients based on Open source Apache Qpid Proton  Using open protocol (AMQP 1.0) to build community around messaging clients 14 Node.js Python PHP Java* Ruby Open protocol *JMS 1.1 in Bluemix today
  15. 15. MQ Light Messaging Model – Send Messages Sender application 1. Send (‘/test/a’, “Hello”); 2. Send (‘/test/a’, “World!”); Topic Address Space Applications send messages to a topic. A topic is an address in the topic space either flat or arranged hierarchically. 15 © 2014 IBM Corporation
  16. 16. MQ Light Messaging Model – Simple Receive Sender application 1. Send (‘/test/a’, “Hello”); 2. Send (‘/test/a’, “World!”); 1. Hello 2. World! Topic Address Space DESTINATION Pattern=/test/a •Applications receive messages by creating a destination with a pattern which matches the topics they are interested in. •Pattern matching scheme based on WMQ. 16 © 2014 IBM Corporation
  17. 17. MQ Light Messaging Model – Pub/Sub DESTINATION Pattern=/test/a DESTINATION Sender application 1. Send (‘/test/a’, “Hello”); 2. Send (‘/test/a’, “World!”); 1. Hello 2. World! 1. Hello 2. World! Topic Address Space Pattern=/test/# Client 1 Client 2 •Multiple destinations can be created which match the same topic •Pub/Sub style. 17 © 2014 IBM Corporation
  18. 18. MQ Light Messaging Model – Persistent destinations Sender application 1. Send (‘/test/a’, “Hello”); 2. Send (‘/test/a’, “World!”); Topic Address Space Hello World! DESTINATION Pattern=/test/a Disconnected client •Destinations persist for a defined “time to live” after receiver detaches. 18 © 2014 IBM Corporation
  19. 19. MQ Light Messaging Model – Sharing DESTINATION Pattern=/test/# SHARING Topic Address Space Sender application 1. Send (‘/test/a’, “Hello”); DESTINATION 2. Send (‘/test/a’, “World!”); 1. Hello 2. World! 1. Hello 2. World! Pattern=/test/# Share=myshare Client 1 Client 2 Client 3 •Clients attaching to the same topic pattern and share name attach to the same shared destination. 19 © 2014 IBM Corporation
  20. 20. MQ Light Messaging Model – Client takeover Sender application 1. Send (‘/test/a’, “Hello”); Hello Topic Address Space DESTINATION Pattern=/test/# Client 1 World! Client 1 2. Send (‘/test/a’, “World!”); •Applications connect to MQ Light service specify (optional) client ID. •Re-using the same client ID pre-empts the original connection. •Ideal for worker takeover in the cloud. 20 © 2014 IBM Corporation
  21. 21. © 2014 IBM Corporation MQ Light Messaging Model  Messages – Payload is either Text or Binary. – Content-type is used by clients to transfer JSON – Per message time to live.  Message delivery model – At most once delivery (QoS 0) – At least once delivery (QoS 1) – Acknowledge & Reject messages – Control over the number of unacknowledged messages delivered. (link credit) 21
  22. 22. © 2014 IBM Corporation MQ Light Node.JS API.  Installable from NPM  Promotes a fluent programming style  Easily wrappable into promises.  Focussed on code simplicity.  Client - connect state machine – Assists cloud applications. 22 client.connect() .on('connected', function() { console.log('Have some random cat names. Have them!'); subscribe('/kittens'); }) .on('disconnected', function() { console.log('That's enough for now!'); }) .on('message', function(data) { console.log('Why not call your cat: '+data); });
  23. 23. “MQ Light” WebSphere MQ [Statement of Direction] © 2014 IBM Corporation Deployment options : Statement of Direction Developer coding in Python, Ruby, JavaScript, Java, C#, 23 PHP MQ Light for Bluemix Deploy seamlessly to “MQ Light”, MQ or MQ Light Service Builds application and uses MQ Light messaging and tests in local developer sandbox
  24. 24. © 2014 IBM Corporation WALKTHROUGH 24
  25. 25. 25 © 2014 IBM Corporation
  26. 26. 26 © 2014 IBM Corporation
  27. 27. 27 © 2014 IBM Corporation
  28. 28. © 2014 IBM Corporation
  29. 29. 29 © 2014 IBM Corporation
  30. 30. 30 © 2014 IBM Corporation
  31. 31. 31 © 2014 IBM Corporation
  32. 32. 32 © 2014 IBM Corporation
  33. 33. 33 © 2014 IBM Corporation
  34. 34. 34 © 2014 IBM Corporation
  35. 35. 35 © 2014 IBM Corporation
  36. 36. 36 © 2014 IBM Corporation
  37. 37. 37 © 2014 IBM Corporation
  38. 38. 38 © 2014 IBM Corporation
  39. 39. 39 © 2014 IBM Corporation
  40. 40. © 2014 IBM Corporation Summary  MQ Light : https://developer.ibm.com/messaging/mq-light/  MQ Light for Bluemix : www.bluemix.net  Messaging designed for developers to create responsive and scalable applications – Simplified messaging API – Easy to acquire and incorporate into applications – Development focused tooling  Range of application deployment options – MQ Light – IBM MQ [Statement of Direction] – MQ Light cloud service in BlueMix 40
  41. 41. IBM MQ Sessions this week 10:30 - 12:00 13:15 - 14:15 14:30 - 15:30 16:00 - 17:00 17:15 - 18:15 © 2014 IBM Corporation Tuesday Opening General Session- IBM Digital Experience and WebSphere Technical University Session A31: IBM MQ CHLAUTH rules – with MQ V8 updates Speaker: Morag Hughson Room 02 Session A4: WebSphere MQ for z/OS: Performance and Accounting Speaker: Alexander Ross Room 8 Session I26: DataPower- MQ Connectivity Deep Dive (Theory) Speaker: Robin Wiley Room 27 Session Z1: WebSphere MQ for z/OS V8: Latest Features Deep Dive Speaker: Damon Cross Room 6 9:00 - 10:00 10:30 - 11:30 11:45 - 12:45 14:00 - 15:00 15:15 - 16:15 16:45 - 17:45 Wednesday Session Z5: WebSphere MQ for z/OS: Security Speaker: Damon Cross Room 02 Session A21: What's New in IBM Messaging Speaker: Morag Hughson Room 8 Session C7: Messaging in the Cloud with IBM MQ Light and IBM Bluemix Speaker: Rob Nicholson Room 27 Session A17: Managing work-loads, scaling and availability with IBM MQ clusters Speaker: David Ware Room 6 Lab IL5: DataPower-MQ Connectivity Deep Dive (Hands-On) Speaker: Robin Wiley Room 7b Session A9: WebSphere MQ for z/OS: The Inside Story Speaker: Damon Cross Room 6 Thursday Session A35: How to Develop Responsive Applications with IBM MQ Light Speaker: Rob Nicholson Room 27 Session A22: New IBM MQ V8 Security Features Speaker: Morag Hughson Room 01 Session A3: WebSphere MQ for z/OS: Shared Queues Speaker: Alex Ross Room 6 Session A18: Using Publish /Subscribe with IBM MQ Speaker: David Ware Room 27 Friday Lab AL6: Developing a First Application with IBM WebSphere MQ Light Speakers: Robert Nicholson, Alex Ross Room 7b Session A16: Using IBM MQ Pub/Sub in an MQ network Speaker: David Ware Room 6
  42. 42. © 2014 IBM Corporation Questions? 42
  43. 43. For Additional Information © 2014 IBM Corporation  IBM Training  http://www.ibm.com/training  IBM WebSphere  http://www.ibm.com/software/websphere/  http://www.ibm.com/software/products/ibm-mq  IBM developerWorks  http://www.ibm.com/developerworks/websphere  https://www.ibm.com/developerworks/community/blogs/messaging  WebSphere forums and community  http://www.ibm.com/developerworks/websphere/community/
  44. 44. Your feedback is valuable - please complete your session evaluation Either on paper or online at ibmeventconnect.eu/euxdx Select Sessions, then Session Finder, and complete the survey Thank You Session A35: IBM MQ Light Rob Nicholson Senior Technical Staff Member Software Group rob_nicholson@uk.ibm.com +44 1962 817517 Twitter: nicholsr Linkedin: uk.linkedin.com/in/robertbnicholson/

×