Woa. Reloaded

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Woa. Reloaded - Presentation Transcript

    1. Web Oriented Architecture (reloaded) Emiliano Pecis Technology Business Unit
      • Wake Up, Neo. SOA has you…
    2. Red or Blue pill? WOA SOA
    3. Agenda
    4. WOA & SOA
    5. <Insert Picture Here> “ In other words, the Web model provides a single, open, and unified information architecture that is consistent, easily consumed, extremely scalable, securable, very reusable, resilient, and highly federated.” Dion Hinchcliffe Founder, Hinchcliffe & Co. Dion Hinchcliffe’s Blog
    6. WOA – Web Oriented Architecture
    7. WOA & SOA
    8. WOA versus SOA: not a competition
    9. The elements of WOA
    10. Make it simple with mashups
    11. WOA – All About Resources
    12. WOA and low case semantic web
    13. ReST vs SOAP
    14. Introducing REST
      • Nouns: All resources, or nouns, are network-addressable with a global URL. Resources have “href” references to other related resources. The only way to address a resource is with a URL.
      • Verbs: A common set of verbs are used to access all resources. The HTTP methods GET, PUT, POST, and DELETE map to retrieve, update, create, and delete (CRUD) functions.
      • Representations:  A resource might be represented as XML, JSON, HTML, text, image, and so on. Instantiating representation from or to the resource is handled on the server. A client can pick its preferred representation via a URI parameter or the “Accept:” header.
    15. REST Patterns 1/2
      • Give every “thing” an ID (URI):
              • http://example.com/orders/2007/11
      • Link things together (Hypermedia links):
              • <order self='http://example.com/customers/1234' > <amount>23</amount> <product ref='http://example.com/products/4554' /> <customer ref='http://example.com/customers/1234' /> </order>
      • Use standard methods (HTTP verbs)
              • GET is safe and idempotent
              • PUT and DELETE are not safe but are idempotent
              • POST is neither safe nor idempotent
    16. REST Patterns 2/2
      • Resources with multiple representations
              • GET /customers/1234 HTTP/1.1 Host: example.com Accept: application/vnd.mycompany.customer+xml
              • GET /customers/1234 HTTP/1.1 Host: example.com Accept: text/x-vcard
      • Communicate statelessly
              • Cookies shouldn’t be used to encode information that can be transferred by other, more standardized means
    17. REST Anti Patterns
      • Tunneling everything through GET or POST
        • http://example.com/some-api?method=deleteCustomer&id=1234
        • Resources are not identified by URIs; rather, URIs are used to encode operations and their parameters
        • The HTTP method does not necessarily match the semantics
        • Such links are usually not intended to be bookmarked
        • There is a risk that “crawlers” (e.g. from search engines such as Google) cause unintended side effects
      • Ignoring caching
        • Cache-control: no-cache (always)
      • Ignoring status code
          • Misusing of 200 or 500 status code
    18. Processes and Resources
    19. REST API
    20. Sponsored Slide: WLP is REST enabled
    21. Developing a scalable WOA
    22. WOA and (server side) scalability
    23. The need of a Datagrid
      • Data grid brokers Data Supply with Data Demand
      • Scale out Data Grid in middle tier using commodity hardware
      Application Servers Web Servers Ever Expanding Universe of Users Data Sources Data Demand Java Objects 10110001011001011101100101100101110001110 101100010110010111011001011001011100011101111110001110
    24. What is a datagrid? Caching Applications request data from the Data Grid rather than backend data sources Analytics Applications ask the Data Grid questions from simple queries to advanced scenario modeling Transactions Data Grid acts as a transactional System of Record, hosting data and business logic Events Automated processing based on event
    25. How does it work?
      • Data spread and backed up across Members
      • Transparent to developer
      • Members have access to all Data
      • All Data locations are known – no lookup & no registry!
      • Synchronous Update
      • Avoids potential Data Loss & Corruption
      • Predictable Performance
      • Backup Partitions are partitioned away from Primaries for resilience
      • No engineering requirement to setup Primaries or Backups
      • Automatically and Dynamically Managed
      • Write-behind
      How does it work?
      • Membership changes (new members added or members leaving)
      • Other members, using consensus , recover and repartition automatically
      • No in-flight operations lost, no availability gap!
      • Some latencies (due to higher priority of asynchronous recovery)
      • Information Reliability & Continuous Availability are the priorities
      How does it work?
    26. Sponsored Slide: Oracle Coherence
      • Implements Map interface
      • Implements JCache interface
      • Real-time filterable (bean) events
      • Filters completely extensible
      • Processors applied in parallel (grid)
      • A large range of filters out-of-the-box
      • Implements listeners
    27. WOA actors
        • Client side
        • Server side
    28. WOA actors #1: AJAX
      • Asynchronous JavaScript and XML
      • Combination: XMLHttpRequest, xml, dom, html, json
      • Enables the partial page refresh feature
    29. WOA actors #2: JS frameworks
      • More high level than pure javascript
      • Examples: dojo, scriptaculous, prototype, jquery, mooTools, yui
      • A lot of stuff done, just invoke it!
      • Ready for ajax and json
    30. WOA actors #3: Json
      • J ava S cript O bject N otation
      • More light than XML (data with less structures)
      • Directly interpretrated by javascript
      • No effort for creating / (de) serializing a tree dom
      • Tens folders more fast
      • More simple to traverse and get attributes
    31. WOA developers love…
      • Agile MVC framework like Grails
      • Complete lightweight container like Spring
      • Lightweight application server
      • ORM like Toplink or Hibernate
      • Data cache layer like Coherence or ehcache
    32. Sponsored Slide: Weblogic Suite
      • Startup the container with just a web profile (no ejb, no rmi, no jca, no jms)
      • Weblogic Server supports Spring with a dedicated console
      • Weblogic Server uses Toplink as ORM
      • Weblogic Suite includes Oracle Coherence for the datagrid
      • Coherence*Web is used to manage sessions in a datagrid fashion and to cache WLP objects
    33. Scaling a SOA with the Datagrid
    34. What does the scalable architecture need to ensure
      • Avoid processing where possible
      • Avoid I/O where possible
      • Avoid serialization and de-serialization
      • Avoid sending large documents over network
      • Avoid distributed file schemes as your app scales up
      • Avoid driving increasing traffic to backend systems
      • Architect for performance from the beginning aka not throwing hardware at the problem!
    35. Data Grid for SOA Services
      • Benefits
      • Up to10 fold reduction in latency times used Cached data
      • Cache available to other nodes in the cluster.
      • Data grid provides backup of cache to peer nodes
      • Cache can be persisted to the database using a number of mechanisms.
      Service Bus Portal Orchestration Engine Service Provider [data item] [data item] Service MySelfServPortal Coherence Grid Near Cache Cache This is a very large piece of customer data that has to be obtained in one go from the system.
    36. Restifying and caching a SOA
      • Problem
        • Siebel CRM works properly, but doesn’t scale as expected
      • Challenges
        • Customer requires rapid access to accurate information
        • All data must be available for a Social CRM Mashup
        • Customer wants to cache better the most frequently invoked services
      • Solution (*)
        • Implement a solution that is able to restify and cache all needed WS-SOAP exposed by Siebel
      • (*) Custom solution, it’s not a product: just for demo purpose
    37. Restifying and caching a SOA
    38. RSD: parse the URL http://siebel.com/rsd/catalog/product/id/5461 ?n1=v1&n2=v2… get / put / post / delete
    39. RSD: check if cached Check the cache only if GET method has been used Assign a XML payload to a variable Send the payload to Coherence through the OSB Transport if Coherence is not UP a WS call will be done If the item is not in the cache a WS call will be done) Skipcache variable will be tested to decide if it is the case to return the cached value or invoke the WS
    40. RSD: check if cached Check the cache only if GET method has been used Assign a XML payload to a variable Send the payload to Coherence through the OSB Transport if Coherence is not UP a WS call will be done If the item is not in the cache a WS call will be done) Skipcache variable will be tested to decide if it is the case to return the cached value or invoke the WS
    41. RSD: check if cached Check the cache only if GET method has been used Assign a XML payload to a variable Send the payload to Coherence through the OSB Transport if Coherence is not UP a WS call will be done If the item is not in the cache a WS call will be done) Skipcache variable will be tested to decide if it is the case to return the cached value or invoke the WS
    42. RSD: the configuration file GET /rsd/catalog/categories/id/3473 The following URI parts select the needed WS parts: This is the SOAP operation to invoke This is the SOAP payload to load This is the SOAP response to return But, what about the URL parameters?
    43. RSD: the configuration file GET /rsd/catalog/categories/id/3473
    44. RSD: check if cached Check the cache only if GET method has been used Assign a XML payload to a variable Send the payload to Coherence through the OSB Transport if Coherence is not UP a WS call will be done If the item is not in the cache a WS call will be done) Skipcache variable will be tested to decide if it is the case to return the cached value or invoke the WS
    45. RSD: check if cached Check the cache only if GET method has been used Assign a XML payload to a variable Send the payload to Coherence through the OSB Transport if Coherence is not UP a WS call will be done If the item is not in the cache a WS call will be done) Skipcache variable will be tested to decide if it is the case to return the cached value or invoke the WS
    46. P B Backup Node Primary Node Get / Put (Cachekey) Service Data Coherence Data Grid OSB Result Cache Oracle Service Bus 1. check cache 2. if results not in cache, invoke service & cache results Resource SOAP/XML REST/JSON Oracle Weblogic Portal Other Portals
      • Siebel
      • WCM
      • Wiki
      • Blog
      • Forum
      Any Web Services Client /browser
    47. Restful Datagrid Reasonings
      • In REST each resource has a unique URL
      • This URL is the primary key for the Datagrid (Coherence)
      • The cached value is stored in JSON format to be as “client ready” as possible
      • REST and JSON give developers more flexibility, ensuring a strong  light-matter coupling between content and its rapresentation
      • Javascript frameworks, like Jquery, allows developers to get JSON data from the datagrid and manipulate them as they prefer
    48. Q&A
    49.  

    + Emiliano PecisEmiliano Pecis, 1 month ago

    custom

    311 views, 1 favs, 2 embeds more stats

    Neo, wake up! SOA has you! :)

    A complete accademic more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 311
      • 239 on SlideShare
      • 72 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 14
    Most viewed embeds
    • 71 views on http://blogs.oracle.com
    • 1 views on http://translate.googleusercontent.com

    more

    All embeds
    • 71 views on http://blogs.oracle.com
    • 1 views on http://translate.googleusercontent.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories