+ All Categories
Home > Technology > Joram Use Cases OW2 Conference Nov10

Joram Use Cases OW2 Conference Nov10

Date post: 06-Jul-2015
Category:
Upload: ow2-consortium
View: 557 times
Download: 2 times
Share this document with a friend
Popular Tags:
20
www.scalagent.com Joram configuration from clustering to WAN distribution Serge Lacourte ScalAgent Distributed Technologies [email protected]
Transcript
Page 1: Joram Use Cases OW2 Conference Nov10

www.scalagent.com

Joram configuration

from clustering to WAN distribution

Serge LacourteScalAgent Distributed Technologies

[email protected]

Page 2: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

2

Outline

MOMs & Joram

UC1: car certificates

UC2: air force communications

Conclusion

Page 3: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

3

Messaging at the hospital

Emergency service

front end

Orientation diagnosis

Patient file

Emergency service

back end

1 2

Step 1: push

Doctor fills in a patient file, and pushes it on a waiting queue (with proper orientation and QoS)

Step 2: pull

The first available doctor (matching orientation) handles the first file from the queue, some time later

Patient file

The emergency MOM

Page 4: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

4

Receiving the letter

2

Messaging for you and me

Sending a letter

1

Step 1: push

You write a letter, and pushes it into a public mailbox (with proper address)

Step 2: pull

I read the letters from my private mailbox, some time later

The postal MOM

Page 5: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

5

« Messaging » – Basic principles

Weak coupling of actors

Indirect communication : (space)

Indirect naming of the target, multiple readers, changing reader, …

Delayed message consumption : (time)

Queuing « store-and-forward »

Application evolution & life cycle Physical architecture, actors configuration, applications management

Common properties

Persistency and reliability, load-balancing

Standards

JMS (1999), AMQP (2010 ?)

Page 6: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

6

JORAM

MOM Open-Source & 100% Java

Portable & light (jars < 1Mo), classical & embedded configurations

Certified JMS 1.1 standalone & J2EE as part of JOnAS

Highly efficient

1.000 to 25.000 msgs/s for a single server

Configurable and extendable

Deployment architecture

Internal architecture

OSGi components: communication, persistency, functional

Business components

collection / transformation / delivery (Mail, FTP, bridge, …)

Page 7: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

7

MOM (actually) distributed

Configurable deployment architecture

Client / centralized server : ‘hub-and-spoke’

Distributed : ‘snow-flake’

Peer-To-Peer

Evolutive & mixed

Scalable

1 to 32.000 (actually) distributed servers

Supports multiples protocols : TCP, SSL, HTTP(s), UDP.

Joram / AMQP / JMS

Joram Joram

Joram

client

client

client

client

Joram

Joram

Joram

Joram

client

client

client

client

Provider

JMS

client

client

client

client

Joram

client

client

client

client

Page 8: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

8

UC1 – car certificates

Page 9: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

9

UC1 – car certificates

The application

Bull & Thales for the French Home Office

Open the administrative processes related to car certificates

Classic “centralized” Web application

Remote access to centralized processes & database

Great number of users

Prefecture – local representative for car owners operations

Car manufacturers – register batches of new vehicles

Car vendors – register new vehicles, register ownership changes

Car owners – read access, certificates, change of address ?

Police – read car status

Page 10: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

10

UC1 – Context and constraints

Strong need for scalability & high availability

Potential users: all car owners (36.000.000)

Daily users: car manufacturers & vendors (24.000 at 04/10)

Load-balancing + fail-over

Some processes are asynchronous

Batch registration by car manufacturers

Operations with offline validation and/or processing

Application architecture with two levels

Front-end & back-end

Connected with a MOM

Page 11: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

11

J2EE JOnAS application

Separated in two levels: front-end and back-end

Connected with a MOM: Joram

Scalability by clustering

The MOM must help the clustered architecture

UC1 – Architecture 1/2

Front-end Back-end

MOMWeb

modjk SAN

?

Page 12: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

12

UC1 – Architecture 2/2

Load-balancing

Administered objects: ClusterConnectionFactory, ClusterDestination

Destination objects: ClusterQueue

High-availability

Using the SAN for the MOM data

... ...

Page 13: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

13

UC1 – Conclusion

Scalability by clustering

Traditional approach

Impacts the internal architecture of the MOM for efficiency

Joram scales

Configurable architecture with cluster dedicated objects

Load balancing between clustered destinations

High availability with SAN support

Next step

Joram usage in a cloud

Page 14: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

14

UC2 – French Air Force

The application

CS Systèmes d’Information for the French Air Force

Monitoring & control of a communication infrastructure

A truly distributed application

Large number of stations

Medium message load

Environment prone to failures

Page 15: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

15

UC2 – French Air Force

The application

CS Systèmes d’Information for the French Air Force

Monitoring & control of a communication infrastructure

A truly distributed application

Large number of stations

Medium message load

Environment prone to failures

Page 16: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

16

UC2 – Context and constraints

Truly distributed application

Patchwork network

WAN, LAN, ad-hoc

Low throughput, high latency, message loss

Major reliability requirement

Static hierarchical deployment

Failure recovery central

region1 region4

station stationstationstation

stationstation

station

…station

station

region4

region2

Page 17: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

17

UC2 – Architecture

Joram configured in mode peer to peer

Ensures message reliability over a low quality network

Loosely coupled JNDI

Dedicated Network component

Joram servers configured with a hardened version of Network

Data compression, regulated data flow

Failure detection and recovery

TTL on messages, and DMQ for undelivered messages

Heartbeat between servers

Dynamic server reconfiguration

Page 18: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

18

UC2 – Conclusion

Reliability by message store & forward

Basics of a MOM, should be true for a distributed application !

Joram provides it at MOM level, by configuring a peer-to-peer Joram

Distributing a MOM brings specific issues

Joram comes with all the sugar to makes this sweet

TTL, DMQ, heartbeat, dynamic reconfiguration, loosely coupled JNDI

Joram adapts to specific environments

Definition of a new Network component

Use the new component by configuring the Joram servers

Page 19: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

19

Conclusion

MOM interfaces & internal architectures

JMS interface provides portability of client code

AMQP protocol provides interoperability between client and server

Inter server communications are not covered

MOM deployment value in its architecture

Joram conforms to JMS & AMQP

Joram architecture is configurable and extendable

Hub and spoke, snowflake, peer to peer

Clustered administered objects & destinations

Specialized components for communication, persistency, …

Page 20: Joram Use Cases OW2 Conference Nov10

© ScalAgent Distributed Technologies – 2001-2010

20

Conclusion

Joram configures for a wide range of applications

French car certificates

Clustered J2EE (also ACOSS, CVF, Geneva State, …)

French air force

WAN distribution over a specific network (also Eads, Sofrelog, Sacem, …)

CNES (French space agency)

Mixed constraints, EAI

Middleware for monitoring & control space missions

Specification CCSDS - Prototype currently being industrialized

Other OW2 projects

JOnAS(J2EE), FraSCAti (SCA), Petals ESB (JBI), Cloudware Initiative


Recommended