Distributed OSGi - OSGi DevCon - Eclipsecon 20111. Distributed the Way
Transforming OSGi
the World Runs Applications
Robert Dunne
robert.dunne@paremus.com www.paremus.com
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
2. Overview
• OSGi Remote Services basics
• What OSGi Remote Services Admin (RSA) adds
• What’s a Topology Manager?
• What’s still missing?
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
3. Bundles share services via the registry
Transforming the Way
the World Runs Applications
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
4. Add remoting at service registry level
Transforming the Way
the World Runs Applications
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
5. 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
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
6. 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
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
7. Remote Services Open issues
• Open Issues
‣ How are services discovered
‣ When should they be imported
‣ How can system builders control remoting
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
8. Remote Services Admin (RSA)
• API for Import and Export
• Endpoint Descriptions and Listeners
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
9. RSA import and export
Transforming the Way
the World Runs Applications
Imports and Exports are now explicit
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
10. 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
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
11. RSA: Discovery with EndpointDescriptions
Transforming the Way
the World Runs Applications
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
12. What’s a Topology Manager?
• RSA for remoting mechanics
• Topology managers for Remoting Policy and Goals
‣ Just a Concept/Role
‣ No API
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
13. Alternative Topologies
Independent
Pipelines
Transforming the Way
the World Runs Applications
Round Robin
Pipelines
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
14. Federated Topology Management
Transforming the Way
the World Runs Applications
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
15. Open Issue: Topology Descriptions
• How to express topology
‣ Description -> Federated TM -> Distributed System
‣ Lots of room for innovation
‣ Too early to standardise
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
16. Open Issue: Distributed Provisioning
• RSA controls the wireup
• But how do the services get deployed
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
17. RSA Implementations
• Eclipse ECF
• Apache CXF
• Paremus Nimble
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
18. Where we fit in
OSGi Distribution (like Ubuntu is a Linux distribution)
Transforming the Way Ships with OSGi Remote Service Admin
the World Runs Applications
Builds on Nimble
A Distributed Model Driven OSGi runtime
Provisioning and Topology descriptions
Paremus www.paremus.com March 2011
Copyright © 2011 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.
19. Making Modularity Manageable™
Thank you for coming
http://www.paremus.com/nimble
Robert Dunne
robert.dunne@paremus.com
Paremus www.paremus.com Feb 2010
Copyright © 2009 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved.