developing modular cloud applications with osgi - tutorial - p bakker

11
Developing modular cloud applications with OSGi Tutorial

Upload: mfrancis

Post on 25-Dec-2014

501 views

Category:

Technology


6 download

DESCRIPTION

In this tutorial, you will learn how to create modular, robust, and durable enterprise applications fit for the cloud age. Modularity forces separation of concerns, which enables you to replace parts of a system without breaking others. Using OSGi and a wealth of open source enterprise components, the presentation shows you how to combine those apparently opposite worlds into coherent applications. It also shows you everything you need to know about setting up your development environment to get started right away. The session features lots of live coding! You will learn about modular architecture and how to practically achieve this using OSGi. Some of the topics included: - Creating OSGi bundles, with proper implementation hiding - Dynamic OSGi Services - Creating real world components such as MongoDB data access and RESTful web services - Semantic versioning - Cloud deployment Bio: Paul is a software architect for Luminis Technologies and the author of “Building Modular Cloud Apps With OSGi”. He believes that modularity and the cloud are the two main challenges we have to deal with to bring technology to the next level, and is working on making this possible for mainstream software development. Today he is working on educational software focussed on personalised learning for high school students in the Netherlands. Paul is an active contributor on open source projects such as Amdatu, Apache ACE and BndTools. He has a background as a trainer on Java related technology and is a regular speaker on conferences such as JavaOne, Devoxx and JFokus.

TRANSCRIPT

Page 1: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Developing modular cloud applications with

OSGi

Tutorial

Page 2: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Paul Bakker@pbakker

Page 3: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Ask whenever you want!

Page 4: Developing modular cloud applications with OSGi - Tutorial - P Bakker

HTML 5 + JavaScript

RESTful services

OSGi services

Mongo

Apache Felix

S3

High level architectureRequirements:

!Agile and modular Modern web app UI mostly offloaded to clients or devices Integration via REST API Horizontally scalable

Page 5: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Lets get to it!

Page 6: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Prevent (tight)

coupling

Promote cohesion

coupling

cohesion

Page 7: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Modules

Page 8: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Service Lookups

Page 9: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Auth Blob stores MongoDB Multi-tenancy OpenSocial Search Remote Services REST Template Web ...

Components

Page 10: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Provisioning servers

Page 11: Developing modular cloud applications with OSGi - Tutorial - P Bakker

Cloud provisioning

http://ace.apache.org/

Eclipse OSGi plugin http://bndtools.org/

That’s us http://luminis-technologies.com

Cloud OSGi services

http://www.amdatu.org/

Amdatu Paul Bakker [email protected]

@pbakker