Tutorial introduction to OSGi

15
What’s Up with Modularity ?!

Transcript of Tutorial introduction to OSGi

What’s Up with

Modularity ?!

Paul Bakker@pbakker

Observations

Extremely agile (first mover advantage)

Architecture (and code base)

should be able to cope with change

Trend Applications tend to grow bigger and more complex

Agile development and refactoring have become more common

Modularity is the answer

Prevent (tight)

coupling

What we learned about OO design in university :

Promote cohesion

coupling

cohesion

Modules Service Lookups

Wha

t do

we

need

design

consequences

High-level enterprise APIs

Architectural focus on

modularity

Runtime dynamic module

framework

Right now, OSGi is the only option

let’s not reinvent the

wheel

for

mod

ular

ity?

Stop talking… and show me code!

Demo

Rooms Resource

AngularJS Client

Rooms Service

RabbitMQ Service

WhatsUp

Architecture

STOMP

AMQP

RabbitMQ

Chat Log

Mongo

Jongo

REST

Rooms Resource

AngularJS Client

Rooms Service

RabbitMQ Service

$$$$$$$$

STOMP

AMQP

RabbitMQ

Chat Log

Mongose

Jongo

REST

Yeah baby!

Personalized Ad Generator

Word Counter

Product Service

MongoDB

$$$$$

$$$$

Demo

Wrap up