Solace Systems The Evolution of Messaging The Rise of the Appliance

27
The Evolution of Messaging The Rise of the Appliance Clive Andrews Mat Hobbis

description

Solace Systems The Evolution of Messaging The Rise of the Appliance Clive Andrews Mat Hobbis Obninsk, 2 March, 2013 LSE The focus beyond Low Latency EXTENT Trading Technology Trends & Quality Assurance

Transcript of Solace Systems The Evolution of Messaging The Rise of the Appliance

Page 1: Solace Systems The Evolution of Messaging The Rise of the Appliance

The Evolution of Messaging

The Rise of the Appliance

Clive AndrewsMat Hobbis

Page 2: Solace Systems The Evolution of Messaging The Rise of the Appliance
Page 3: Solace Systems The Evolution of Messaging The Rise of the Appliance

Adoption Cycles

Functionality& Performance

Time

Page 4: Solace Systems The Evolution of Messaging The Rise of the Appliance

Adoption Cycles

Functionality& Performance

Time

Page 5: Solace Systems The Evolution of Messaging The Rise of the Appliance

Considerations in Selecting

Hardware vs. Software

Page 6: Solace Systems The Evolution of Messaging The Rise of the Appliance

Hardware: Extreme Performance

Page 7: Solace Systems The Evolution of Messaging The Rise of the Appliance

Hardware: Predictable Behavior

Page 8: Solace Systems The Evolution of Messaging The Rise of the Appliance

Hardware: Massive Scale

Page 9: Solace Systems The Evolution of Messaging The Rise of the Appliance

Hardware: 24x7x365 Reliability

Page 10: Solace Systems The Evolution of Messaging The Rise of the Appliance

Hardware: Cost

Page 11: Solace Systems The Evolution of Messaging The Rise of the Appliance

Software: Versatility

Page 12: Solace Systems The Evolution of Messaging The Rise of the Appliance

Hardware Products are Widely Available and Simple to Deploy

Page 13: Solace Systems The Evolution of Messaging The Rise of the Appliance

Softwareon Servers

EnterpriseAppliances

o Easier Operation

o Lower TCO

o Higher Performance

DatabaseStorageWebInfrastructure

MessagingMiddleware

IPRouting

Applying the Appliance Advantage to Middleware

Page 14: Solace Systems The Evolution of Messaging The Rise of the Appliance

Don’t Make Headlines

“India stock exchange flash crash erasesUS$58 Billion”October 2012

“IT leaders face pay cut after TSE outage”August 2012

“Facebook crashes the Nasdaq”December 2012

Page 15: Solace Systems The Evolution of Messaging The Rise of the Appliance

Application Evolution

15CONFIDENTIAL

Page 16: Solace Systems The Evolution of Messaging The Rise of the Appliance

16CONFIDENTIAL

Event Driven Architecture (i)• Need to be Agile.• Increased Regulation . Audit, “Real-Time” Global Risk and P&L• Drive EDA for scale and resilience – drives message bus requirements• Bus Latencies and Throughput important

Trade Bus Trade Bus

Monitor /Staging Bus Monitor / Staging Bus

OMSSub

Post TradeDist Svc

DBPersist

OMSSub

Post TradeDist Svc

DBPersist

Risk P&L

Page 17: Solace Systems The Evolution of Messaging The Rise of the Appliance

17CONFIDENIAL

Event Driven Architecture (ii)• Co-Locate Processes where Latency is

key• Shared Memory IPC within host (Same

API)• Non “on host” components also need

Low Latency Connections.• Lower Latency requirements of

Staging area allow message batching– Turn Message Rate problem into a

Bandwidth Problem

• Need High Availability and recovery options

• Need Disaster Recovery options

Trade Bus

OMSSub

Post TradeDist Svc

DBPersist

CrossingEngine SOR

Physical Host

Shm Q

Page 18: Solace Systems The Evolution of Messaging The Rise of the Appliance

Product Architecture

18CONFIDENTIAL

Page 19: Solace Systems The Evolution of Messaging The Rise of the Appliance

19CONFIDENTIAL

Networked Architecture• Hardware-based middleware overlay for IP networks• All Message QoS in one Appliance – Reliable/Persistent/Web

Streaming• WAN Optimisation and Compression• Comprehensive Statistics and Monitoring

Page 20: Solace Systems The Evolution of Messaging The Rise of the Appliance

20CONFIDENTIAL

Modular Addition of Functionality

Data Plane Capabilities embedded in FPGAs and network processors, added via modular architecture

- Build to suit

- Scale within footprint

- Easy upgrades

Control Plane Administration, subscriptions and stats collection never impact performance

High-Speed Interconnect

(10 blades in 3260,5 blades in 3230)

Solace Blades(PCIe Cards)

Page 21: Solace Systems The Evolution of Messaging The Rise of the Appliance

Reliable Messaging• Pure hardware solution

– No operating system– No context switching– No interrupts– No data copies

• 10 million messages/second– Can be any combination, e.g.

5M in & 5M out, 2M in & 8M out

21CONFIDENTIAL

500K/500K 1M/1M 2M/2M 3M/3M 4M/4M 5M/5M0

10

20

30

40

50

60

22 23 24 2629

3525 2630

32

39

54Avg

99.9th

Messages per Second

Micro-seconds

of La-tency

BulkMessage

Rate

Message Size(bytes)

Message Rate (msgs/sec)

User PayloadBandwidth (Mbps)

100 5,930,000 4,744

500 2,080,000 8,320

10GigE Line Rate is the Limit

1,000 1,080,000 8,640

12,000 92,000 8,832

30,000 34,000 8,160

Page 22: Solace Systems The Evolution of Messaging The Rise of the Appliance

CONFIDENTIAL

Guaranteed Messaging; Store & Forward Performance

Failsafe w/o overhead of persisting every message to disk

200K msgs/sec ingress and 200K msgs/sec egress

Latency steady even while recovering when disconnected subscribers reconnect

22

2,000 10,000 25,000 50,000 100,000 125,000 150,0000

20

40

60

80

100

120

140

160

180

69 69 69 7379 84

98

90 88 9199

114123

154Avg

99.9th

Messages per Second

Micro-seconds

of La-tency

500 1,000 2,000 4,0000

50,000

100,000

150,000

200,000206,400 202,000

157,500

124,400

ADB-3 Software Broker

Msg

Rat

e (M

sg/s

ce)

ADB Message Rates

Page 23: Solace Systems The Evolution of Messaging The Rise of the Appliance

Guaranteed Messaging;Cut Through Persistence Latency

23CONFIDENTIAL

Low, consistent latency for low latency trading applications

Can also have store & forward clients for same published message

Queues can have low and high priority limits set.

During congestion :

Reject new orders

Process changes to existing orders

Page 24: Solace Systems The Evolution of Messaging The Rise of the Appliance

Steady in Face of Slow Consumerso Latency stays consistent

even through disconnection and re-connection of clients

oRe-connected subscribers “catch up” without impacting other clients

Pre-Failure Spooling Catchup/Recovery Post-Recovery0

20406080

100120140160180

74 7589

74

103 113

170

103

Avg99.9th

Period of Test

Micro-sec-onds of La-

tency

24CONFIDENTIAL

Page 25: Solace Systems The Evolution of Messaging The Rise of the Appliance

IPC Shared Memory Messaging• Single API session for:

– Communications between processeson one OS instance

– Topic-based pub/sub and request/reply

– Any-to-any messaging

– Reliable delivery

• Applications can block or busy-wait

• C API for Linux, Solaris and Windows

• Move apps to IPC with no application changes

25CONFIDENTIAL

Core1

Core3

Core2

Core4

SharedMemory

1 publisher -> 1 subscriber• 2.91 million msgs/sec; 128 byte messages• Average latency 431 nanoseconds

99th percentile 480 nanoseconds

6x6 mesh simulation of fanout/fanin• 46.8 million messages per second• 154.5 gigabits per second

Page 26: Solace Systems The Evolution of Messaging The Rise of the Appliance

Thanks……

Page 27: Solace Systems The Evolution of Messaging The Rise of the Appliance