Distributed OSGi - OSGi DevCon - Eclipsecon 2011

19
www.paremus.com Transforming the Way the World Runs Applications Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. www.paremus.com Paremus March 2011 Distributed OSGi Robert Dunne [email protected] www.paremus.com

description

his talk combines an introduction to the OSGi Remote Services and Remote Service Admin specifications with some compelling examples that illustrate their use and flexibility. It will also take a look at topics that these specifications have left deliberately open, such as topology management, i.e. service wire-up policy, and discuss the potential for innovation in these areas.

Transcript of Distributed OSGi - OSGi DevCon - Eclipsecon 2011

Page 1: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

Distributed OSGi

Robert [email protected] www.paremus.com

Page 2: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Overview

• OSGi Remote Services basics

• What OSGi Remote Services Admin (RSA) adds

• What’s a Topology Manager?

• What’s still missing?

Page 3: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

Bundles share services via the registry

Page 4: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

Add remoting at service registry level

Page 5: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Remote Services: Distribution Providers

• Monitor Service Properties

‣ Export matching services

• Monitor Service Listeners (With hooks)

‣ Import on demand (maybe!)

• There can be multiple, independent DPs

Page 6: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Remote Service Properties

• Configurations (remoting stacks)- configuration specific properties

• Interfaces

• Intents (from SCA)

‣ QoS & Non-Functional

‣ Can be

- Built in to services

- Required by services

- Required by admins

Page 7: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Remote Services Open issues

• Open Issues

‣ How are services discovered

‣ When should they be imported

‣ How can system builders control remoting

Page 8: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Remote Services Admin (RSA)

• API for Import and Export

• Endpoint Descriptions and Listeners

Page 9: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

RSA import and export

Imports and Exports are now explicit

Page 10: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

RSA Discovery with EndpointDescriptions

• EndpointDescriptions

‣ Just Properties

• Where do they come from?

‣ Created when you Export

‣ Can be embedded in bundles

‣ Discovered via an EndpointListener

- Or any way you like

Page 11: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

RSA: Discovery with EndpointDescriptions

Page 12: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

What’s a Topology Manager?

• RSA for remoting mechanics

• Topology managers for Remoting Policy and Goals

‣ Just a Concept/Role

‣ No API

Page 13: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

Alternative Topologies

Independent Pipelines

Round RobinPipelines

Page 14: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

Federated Topology Management

Page 15: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Open Issue: Topology Descriptions

• How to express topology

‣ Description -> Federated TM -> Distributed System

‣ Lots of room for innovation

‣ Too early to standardise

Page 16: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

Open Issue: Distributed Provisioning

• RSA controls the wireup

• But how do the services get deployed

Page 17: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.comCopyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

Paremus March 2011

RSA Implementations

• Eclipse ECF

• Apache CXF

• Paremus Nimble

Page 18: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

www.paremus.com

Transforming the Way the World Runs Applications

Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.www.paremus.comParemus March 2011

Builds on NimbleA Distributed Model Driven OSGi runtimeProvisioning and Topology descriptions

Where we fit in

OSGi Distribution (like Ubuntu is a Linux distribution)Ships with OSGi Remote Service Admin

Page 19: Distributed OSGi  - OSGi DevCon - Eclipsecon 2011

Making Modularity Manageable™

http://www.paremus.com/nimble

www.paremus.comCopyright © 2009 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.

www.paremus.comParemus Feb 2010

Thank you for coming

Robert [email protected]