14

Click here to load reader

AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Embed Size (px)

DESCRIPTION

Introduction to a simple framework we developed a while back for helping customers to work with Windows Azure Service Bus.

Citation preview

Page 1: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Introducing AppFx.ServiceBus

Connected Systems Consulting Ltd

Page 2: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

Who am I?Michael Stephenson

– UK-Based Freelance Consultant specializing in:• BizTalk• Windows Azure• Integration

– Was BizTalk MVP now a Microsoft Integration MVP for 5+ years

– One of organizers of UK Connected Systems User Group

– Blog: www.geekswithblogs.net/michaelstephenson

– Twitter: @michael_Stephen

– Linked In: http://www.linkedin.com/in/michaelstephensonuk1

Page 3: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

Agenda• What have we been up to?• Example Architectures• So what’s so hard about Service Bus

Page 4: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

What is AppFx.ServiceBus

Cloud Hosting

Windows Azure Service Bus

On Premise

Application

AppFx.ServiceBus Windows Service

AppFx.ServiceBus Client Framework

AppFx.ServiceBus Server Framework

Custom Cloud Application

AppFx.ServiceBus Server Framework

AppFx.ServiceBus Client Framework

Framework to simplify hybrid messaging implementation with Windows Azure Service Bus

Page 5: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

Why do we need this?We love Windows Azure Service Bus but in real world projects there are still challenges:

• IIS hosted WCF didn’t work that great• Handle different types of message• Different message formats eg. XML or JSON• There’s lots of plumbing code to write• Where do you host receive code?• What about Message Factory refreshing• Need some standards to ensure interoperability• Lots of different message exchange patterns

– Scatter Gather– RPC– One way

Page 6: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

What did we want to do?

Framework

Simplified development

experience

Message Exchange Patterns

Focus on functional code not plumbing

Receive side hosting

Consistent approaches

Standards & interoperability

Page 7: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

Key use cases

• You should look at AppFx.ServiceBus if:– Trying your first hybrid integration project– Want to get up and running really quickly (e.g. Proof of

Concept)– You don’t have BizTalk 2013– You want to connect old versions of BizTalk to Azure Service

Bus (can act as a bridge)– You want to do light-weight queued messaging

Page 8: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

FeaturesHosting

On-Premise• Windows Service• Console Application• Custom

Cloud• Azure VM Windows Service• Azure Worker Role• AWS EC2 Windows Service

Message Patterns

RPC

One Way

One Way with Call back

Scatter Gather

ArchitecturePatterns

Cloud to Cloud Integration

Cloud to On-Premise Integration

Dead Letter Processing

Standards around the approach for interop

Client-side Framework

Messaging Clients

Error translation

Logging

Server-side Framework

Message Handlers

Error Handling

Retries

JSON or XML Message Support

Supports many listeners and namespaces

Logging

Page 9: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

The Standards

Message ContextProperty Use

Label Indicates what type of message the body contains

Content Type Used to indicate the format of the message (eg: JSON or XML)

Is Error Used to indicate if the message is an error message

Message Body

Can be any JSON or XML

Page 10: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

DEMOHybrid Integration Solutions

Page 11: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Demo Scenario

Page 12: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Connected Systems Consulting Ltd

Demo Contents

• Existing on-premise WCF Service• Message Definition• Queue Bridge

– Message Handler– Configuration

• Client + REST call

Page 14: AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus

Questions?