26
Beyond the POC Adopting NServiceBus

NSBCon - Beyond the POC

Embed Size (px)

DESCRIPTION

How to adopt NSB from the NSBCon NYC confererence

Citation preview

Page 1: NSBCon - Beyond the POC

Beyond the POCAdopting NServiceBus

Page 2: NSBCon - Beyond the POC

Introduction Adam Fyles

Solution Architect

Using NSB since v1.9

NServiceBus Champ

Upstate NY, US

Contact Info

adamfyles.blogspot.com

[email protected]

Page 3: NSBCon - Beyond the POC

The tablescape Regional Grocery Retailer

- Wine & Spirits

- Restaurants

90+ Stores in 6 states

Millions of customers

Medium to large IT department (~250)

Extremely high volume stores

Page 4: NSBCon - Beyond the POC

Let me in! Lots of competitive products, why do we need another one?

Batch jobs work just fine!

Lack of SOA understanding

Operations used to FTP

Page 5: NSBCon - Beyond the POC

The progression

SagasPub/SubPoint to

PointLoad

Balancing

Page 6: NSBCon - Beyond the POC

Load Balancing: OMS Determines how to best source product in the supply chain based on demand

Inherently batch based due to wave planning in either WMS or MFG

Requires massive throughput (by order line item) in a tight window

No commercial system could do it without heavy custom configuration and a ridiculous amount of hardware

Team was experienced PowerBuilder developers

Page 7: NSBCon - Beyond the POC

Solution Solution was to decompose orders and optimize by distribution “network”

Run aggregate demand through with the Distributor

Distributor

Worker 1 Worker 2

DB

WMS

Transportation

Publish

Ord

ers

Order Entry

Order Entry

Order Entry

Page 8: NSBCon - Beyond the POC

Distributor Demo

Page 9: NSBCon - Beyond the POC

Store

Corporate

Supply Chain Proliferation

PurchasedWMS

Integration Endpoint

HTTP

PurchasedCAO

Master DataForecasted

Orders

DataBus

Other Systems

Page 10: NSBCon - Beyond the POC

DataBus Customization Demo

Page 11: NSBCon - Beyond the POC

Takeaways… Replaying messages!!

Required more DevOps

MSDTC Tricks

Stay inside the stack

Page 12: NSBCon - Beyond the POC

Point 2 Point: Mobile Built an entire REST API around all of our Marketing tools Products Recipes Shopping Lists Online Ordering Search Ratings and Reviews

It must be fast and durable!

Page 13: NSBCon - Beyond the POC

Request/Response is not an option

Page 14: NSBCon - Beyond the POC

Mobile Solution Solution was point to point integration to backend systems of record

FlakyDB

Mobile

API

View ModelReads

Writes

Web

3rd Party

NSB

Writes

Page 15: NSBCon - Beyond the POC

Customer Facing Proliferation

API

Reads

RX PortalOffisite Vendor RX

System

WritesNSBWrites

Customer Care

RX Service Desk

Page 16: NSBCon - Beyond the POC

Custom Fault Manager Demo

Page 17: NSBCon - Beyond the POC

Takeaways… Asynchronous performs well

Messaging trumps fragile backends

Leverage local resources

Page 18: NSBCon - Beyond the POC

Pub/Sub: Pricing Legacy Mainframe System

Lots of price changes

Wide Distribution Network All Stores – POS, Scales, Signs Online – Web, mobile, email

Page 19: NSBCon - Beyond the POC

Legacy Integration Find the weak point where you can enter the host

Page 20: NSBCon - Beyond the POC

Solution

DB

Publisher

Email WebMobile

Signs

Scales

POS

Mainframe

CDC

Page 21: NSBCon - Beyond the POC

Workflow: Benefits Registration Series of questions

Plan selection

Open window of opportunity

Page 22: NSBCon - Beyond the POC

Solution

Step 1

Step 2

Step 3

Saga Storage

SharePoint Site

NServiceBus

Metrics

Reporting

Page 23: NSBCon - Beyond the POC

Takeaways… Don’t reinvent the wheel

Focus on business process

Page 24: NSBCon - Beyond the POC

Sum it up!

Page 25: NSBCon - Beyond the POC

Efficiency

Page 26: NSBCon - Beyond the POC

Focus