Building Scalable and Robust Solutions with Service Bus in Cloud and Server
Upcoming SlideShare
Loading in...5
×
 

Building Scalable and Robust Solutions with Service Bus in Cloud and Server

on

  • 1,040 views

More info on http://www.techdays.be

More info on http://www.techdays.be

Statistics

Views

Total Views
1,040
Views on SlideShare
1,040
Embed Views
0

Actions

Likes
0
Downloads
16
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Building Scalable and Robust Solutions with Service Bus in Cloud and Server Building Scalable and Robust Solutions with Service Bus in Cloud and Server Presentation Transcript

  • Building Scalable and RobustSolutions with Service Bus in Cloudand ServerClemens Vasters (@clemensv)Principal Technical Lead / ArchitectWindows Azure Application Platform Team – Service Bus
  • Appliances Phones & Tablets PC SaaS Cloud app  Queues Topics Relays Notifications Team SharePointLOB Apps Event Aggregator site ....
  • *cloud-only for now **cloud-only for the forseeable future
  • • Building cloud services• Enable Hybrid configurations• Connected client scenarios
  • XBox Leaderboard Game Stats Devices DevicesXBox Gateway Role Service Bus Queues Halo Backend Role Xbox LiveXBox 1. Game scores fan-in to Queues 2. Sessions used to correlate games 3. Scheduled messages to track completionXBox 4. Halo backend produces finalized stats
  • Retail Services ISVPOSPOS Retail Web Services Service Bus Queues IT AdminPOS Service Bus Topics Marketing Sales data fan-in to Queues Messages processed and appropriate messages sent Topics used to support Publish-Subscribe for messagesPOS Real-time monitoring as well as decoupled inventory updates
  • Enterprise Services ISV Service Bus Relay ISV Suite Policy Updates Remote Management Enterprise Private Cloud Central RepositoryISV Private Cloud • ISV Suite offers a turn-key solution for security & management of BYOD • Deployed on enterprise networks behind firewalls/NATs • Uses Service Bus Relay to push policy updates/templates and perform remote management of the Suite
  • CRM Online CRM Online ServiceWindows 8 1. Devices Authenticate with CRM 2. Registration sent to Notification Hub 3. Message initiated by CRM Online Service 4. Customized Notifications to all devices Service Bus Notification HubWin Phone 8 WNS Filter w/ Tags Broadcast Scale Templates iOS APNS
  • Apps.NET WCF Service Model C/C++ Java/JMS (incl Embedded) Node.j Any Python PHP NetMessagingBinding Apache Qpid s HTTP client client Apache JMS AMQP client client Proton-C 1.0 .NET Service Bus Messaging APISB Messaging Protocol AMQP 1.0 HTTP(S) (net.tcp, proprietary) Service Bus
  • © JPMorgan Chase & Co.
  • Sender Replay BufferIdempotence Barrier Receiver
  • Service Bus Message Sys Properties Key Value Key Value Key Value Custom Properties Key Value Key Value Key Value Key Value Body Body (Bag of Bytes)
  • Broker Receive and DeleteBroker 1. Peek/Lock 2. Delete/Unlock
  • Service Bus 1.0 for WindowsServer
  • Why & WhatOn-Premises pub-sub •Enterprise applications developed and deployed on-premise.Develop& Deploy •Scale ; HA ; Manageability ; Rich messaging feature setDevelop On-premise •High fidelity develop, test, debug experience Develop Deploy •DevBox deployment (HW&SF pre-reqs) ; Tools (VS); debug mode ; symmetryFlexible Deployment •Driven by enterprise desire for deployment choice (or perception Deploy Deploy thereof) •Full symmetry ; Ease of migrationTiered Deployment •Maintain control of mission critical data / systems Data App •Unable/unwilling to migrate legacy systems •Gradual migration to cloud •Message Federation ; Store-and-Forward
  • • Clustered deployment Node• Identical nodes SB Gateway SB Messaging Backend Message• Stateless gateways Store Node SB Messaging Message SB Gateway Backend Store• Backend Node Message Store SB Messaging SB Gateway Backend Message• Databases Store Gateway DB
  • Windows Server 2008 R2 SP1Windows Server 2012SQL Server 2008 R2 SP1 SQLServer 2012Web PI-based
  • HardwareMeasured performance for flow rates 20,000 messages/s 14,200 messages/s 26 messages/sAlways able to get more by using faster machines.
  • Messaging Patterns
  • Queue
  • Queue
  • Queue
  • SubTopic Sub Sub
  • Broker Message Properties Reply Queue Broker Broker Message Send Queue Properties Body
  • Broker Message Properties Reply Queue Broker Message Properties Broker Send Queue BodyBroker Message Reply Queue Properties
  • var sender = QueueClient.CreateFromConnectionString(cs, "test");sender.Send(new BrokeredMessage { Label = "Hello" });// Send a message with system and application properties setvar bm = new BrokeredMessage();bm.Label = "PurchaseOrder123";bm.TimeToLive = new TimeSpan(0, 5, 0);bm.Properties["PurchaseOrderID"] = 1234;sender.Send(bm);
  • var receiver1 = QueueClient.CreateFromConnectionString(cs, "test",ReceiveMode.ReceiveAndDelete);var msg1 = receiver1.Receive();var receiver2 = QueueClient.CreateFromConnectionString(cs, "test",ReceiveMode.PeekLock);var msg2 = receiver2.Receive();try{ // Process msg2 msg2.Complete();}catch{ msg2.Abandon(); throw;}
  • <predicate ::= { NOT <predicate> } | <predicate> AND <predicate> | <predicate> OR <predicate> | <expression> { = | <> | != | > | >= | < | <= } <expression> | <property> IS [NOT] NULL | <expression> [NOT] IN ( <expression> [, ...n] ) | <expression> [NOT] LIKE <pattern> [ESCAPE <escape_char>] | EXISTS ( <property> ) | ( <predicate> ) <expression> ::= <constant> | <property> | <expression> { + | - | * | / | % } <expression> | { + | - } <expression> | ( <expression> )var filter = new SqlFilter("InvoiceTotal < 10000");
  • <statements> ::= <statement> [, ...n] | <action> [;] <action> ::= SET <property> = <expression> | REMOVE <property> <expression> ::= <literal> | <function> ::= newid() | <property> | <expression> { + | - | * | / | % } <expression> | { + | - } <expression> | ( <expression> )var rule = new SqlRuleAction("SET FullName = FirstName + + LastName");
  • QueueDescription destinationQ = new QueueDescription("myQ2");QueueDescription sourceQ = new QueueDescription("myQ1");sourceQ.ForwardTo = "myQ2";NamespaceManager nm = NamespaceManager.Create();nm.CreateQueue(destinationQ);nm.CreateQueue(sourceQ);
  • DeviceId = ‘123’ OR UserId = ‘clemensv’ OR Group IN (‘A’, ‘B’, ‘C’)Group IN (‘A’, ‘B’, ‘C’, ‘D’, ‘E’) DeviceId = ‘456’ OR UserId = ‘clemensv’ OR Group IN (‘A’, ‘B’, ‘C’)
  • HTTP SBMP/AMQP HTTP 1 Entity per Socket 1 Pending Operation per Socket 60s operation timeout (NAT/Prx) SBMP/AMQP Unlimited Multiplexed Entities and Unlimited Pending Ops per Socket No fixed operation timeout Session Support (coming in AMQP)
  • Browsers Long Polling, Web Sockets, Server-Side Events, Forever-Frame ConnectionsKey Value IMessageBus key1 Filtered key2 Receive … keyN
  • Composite Cursor Node A Node B IMessageBus IMessageBus Topic A B Throughput Topic A B Scale-Out Topic A BClient Pinning
  • Node A Node B Socket.io Socket.io Topic A B Throughput Topic A B Scale-Out Topic A B
  • Notification Hubs
  • Client app Platform Notification ServiceApp back-end
  • iOS app Windows Store appApp back-end APNs WNS Service Bus Notification Hub
  • Tag:”Beatles” Tag:”Beatles” Service BusApp back-end Notification Hub Tag:”Wailers”
  • <toast> <visual> <binding template="ToastText01"> <text id="1">$(message)</text> </binding> </visual> </toast> Hello! { message: ‚Hello!‛ } Service BusApp back-end Notification Hub Hello! { aps: { alert: ‚$(message)‛ } }
  • Thank You ForListening!