26
Beyond the POC Adopting NServiceBus

Beyond the POC: Adopting NServiceBus

Embed Size (px)

DESCRIPTION

After completing a POC typically we are left with a lot of open questions, most importantly how do we adopt this thing across the organization? How do you begin to integrate the new message patterns and concepts into your legacy code bases? How will your development teams adopt the new tools and more importantly all the new concepts? In this session, discover how using NServiceBus transforms the way we think about design and how we approach our work. Learn how typical three tiered designs just seem to disappear and how business processes start to become workflows. See the recorded session here: https://particular-1.wistia.com/medias/t9lt8x1xyh

Citation preview

Page 1: Beyond the POC: Adopting NServiceBus

Beyond the POCAdopting NServiceBus

Page 2: Beyond the POC: Adopting NServiceBus

Introduction Adam Fyles

Solution Architect

Using NSB since v1.9

NServiceBus Champ

Upstate NY, US

Contact Info

adamfyles.blogspot.com

[email protected]

Page 3: Beyond the POC: Adopting NServiceBus

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: Beyond the POC: Adopting NServiceBus

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: Beyond the POC: Adopting NServiceBus

The progression

SagasPub/SubPoint to

PointLoad

Balancing

Page 6: Beyond the POC: Adopting NServiceBus

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: Beyond the POC: Adopting NServiceBus

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: Beyond the POC: Adopting NServiceBus

Distributor Demo

Page 9: Beyond the POC: Adopting NServiceBus

Store

Corporate

Supply Chain Proliferation

PurchasedWMS

Integration Endpoint

HTTP

PurchasedCAO

Master DataForecasted

Orders

DataBus

Other Systems

Page 10: Beyond the POC: Adopting NServiceBus

DataBus Customization Demo

Page 11: Beyond the POC: Adopting NServiceBus

Takeaways… Replaying messages!!

Required more DevOps

MSDTC Tricks

Stay inside the stack

Page 12: Beyond the POC: Adopting NServiceBus

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: Beyond the POC: Adopting NServiceBus

Request/Response is not an option

Page 14: Beyond the POC: Adopting NServiceBus

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: Beyond the POC: Adopting NServiceBus

Customer Facing Proliferation

API

Reads

RX PortalOffisite Vendor RX

System

WritesNSBWrites

Customer Care

RX Service Desk

Page 16: Beyond the POC: Adopting NServiceBus

Custom Fault Manager Demo

Page 17: Beyond the POC: Adopting NServiceBus

Takeaways… Asynchronous performs well

Messaging trumps fragile backends

Leverage local resources

Page 18: Beyond the POC: Adopting NServiceBus

Pub/Sub: Pricing Legacy Mainframe System

Lots of price changes

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

Page 19: Beyond the POC: Adopting NServiceBus

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

Page 20: Beyond the POC: Adopting NServiceBus

Solution

DB

Publisher

Email WebMobile

Signs

Scales

POS

Mainframe

CDC

Page 21: Beyond the POC: Adopting NServiceBus

Workflow: Benefits Registration Series of questions

Plan selection

Open window of opportunity

Page 22: Beyond the POC: Adopting NServiceBus

Solution

Step 1

Step 2

Step 3

Saga Storage

SharePoint Site

NServiceBus

Metrics

Reporting

Page 23: Beyond the POC: Adopting NServiceBus

Takeaways… Don’t reinvent the wheel

Focus on business process

Page 24: Beyond the POC: Adopting NServiceBus

Sum it up!

Page 25: Beyond the POC: Adopting NServiceBus

Efficiency

Page 26: Beyond the POC: Adopting NServiceBus

Focus