Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Liferay 7 - microservices for the enterprise

Liferay 7 - microservices for the enterprise

This is an overview of microservices characteristics and how those are quite similar to the concept of (micro?) services in OSGi. It then goes one step further to demonstrate how one can benefit form the concept in an enterprise class solutions like Liferay Portal 7.

Avatar for Milen Dyankov

Milen Dyankov

April 24, 2015
Tweet

More Decks by Milen Dyankov

Other Decks in Programming

Transcript

  1. Componentization via Services Organized around Business Capabilities Products not Projects

    Smart endpoints and dumb pipes Decentralized Governance Decentralized Data Management Infrastructure Automation Design for failure Evolutionary Design Microservices characteristics!
  2. . . . then all you are doing is shifting

    complexity from inside a component to the connections between components. . . . it moves it to a place that's less explicit and harder to control.
  3. . . . The Deployment Model is a Detail. .

    . . there is no such thing as a micro-service architecture. Micro-services are a deployment option . . .
  4. Componentization via Services Organized around Business Capabilities Products not Projects

    Smart endpoints and dumb pipes Decentralized Governance Decentralized Data Management Infrastructure Automation Design for failure Evolutionary Design 50% not strictly software but rather operations related!
  5. Componentization via Services Smart endpoints and dumb pipes Decentralized Data

    Management Design for failure Let's focus on software related ones
  6. OSGi services m a n i f e s t

    m a n i f e s t m a n i f e s t m a n i f e s t O S G i s e r v i c e r e g i s t r y I n t e r f a c e S e r v i c e 1 . . . S e r v i c e N
  7. OSGi services m a n i f e s t

    m a n i f e s t m a n i f e s t O S G i s e r v i c e r e g i s t r y R E G I S T E R R E G I S T E R U S E m a n i f e s t I n t e r f a c e S e r v i c e 1 . . . S e r v i c e N
  8. OSGi services m a n i f e s t

    m a n i f e s t O S G i s e r v i c e r e g i s t r y S E R V L E T S E R V L E T G E T G E T R E G I S T E R R E G I S T E R H T T P S e r v i c e I m p l H T T P S e r v i c e H T T P S e r v i c e I m p l R E G I S T E R
  9. OSGi services m a n i f e s t

    m a n i f e s t O S G i s e r v i c e r e g i s t r y H T T P S e r v l e t R E G I S T E R S E R V L E T S E R V L E T G E T ( w h e n n e e d e d ) H T T P S e r v i c e I m p l S e r v l e t 1 ( p a t h = ” / 1 ” ) S e r v l e t 2 ( p a t h = ” / 2 ” ) R E G I S T E R applying White Board Pattern
  10. • Componentization via Services m a n i f e

    s t m a n i f e s t O S G i s e r v i c e r e g i s t r y H T T P S e r v l e t R E G I S T E R S E R V L E T S E R V L E T G E T ( w h e n n e e d e d ) H T T P S e r v i c e I m p l S e r v l e t 1 ( p a t h = ” / 1 ” ) S e r v l e t 2 ( p a t h = ” / 2 ” ) R E G I S T E R
  11. Smart endpoints and dumb pipes m a n i f

    e s t m a n i f e s t O S G i s e r v i c e r e g i s t r y H T T P S e r v l e t R E G I S T E R S E R V L E T S E R V L E T G E T ( w h e n n e e d e d ) H T T P S e r v i c e I m p l S e r v l e t 1 ( p a t h = ” / 1 ” ) S e r v l e t 2 ( p a t h = ” / 2 ” ) R E G I S T E R no
  12. Decentralized Data Management m a n i f e s

    t m a n i f e s t O S G i s e r v i c e r e g i s t r y H T T P S e r v l e t R E G I S T E R S E R V L E T S E R V L E T G E T ( w h e n n e e d e d ) H T T P S e r v i c e I m p l S e r v l e t 1 ( p a t h = ” / 1 ” ) S e r v l e t 2 ( p a t h = ” / 2 ” ) R E G I S T E R Everything
  13. Design for failure m a n i f e s

    t m a n i f e s t O S G i s e r v i c e r e g i s t r y H T T P S e r v l e t R E G I S T E R S E R V L E T S E R V L E T G E T ( w h e n n e e d e d ) S e r v l e t 1 ( p a t h = ” / 1 ” ) S e r v l e t 2 ( p a t h = ” / 2 ” ) R E G I S T E R H T T P S e r v i c e I m p l
  14. Remote services O S G i s e r v

    i c e r e g i s t r y I n t e r f a c e S e r v i c e 1 S e r v i c e 1 ( r e m o t e ) O S G i s e r v i c e r e g i s t r y I n t e r f a c e S e r v i c e 1
  15. m i l e n . d y a n

    k o v @ l i f e r a y . c o m h t t p : / / w w w . l i f e r a y . c o m / w e b / m i l e n . d y a n k o v / @ m i l e n d y a n k o v @ L i f e r a y P L h t t p : / / w w w . l i f e r a y . c o m @ L i f e r a y h t t p : / / w w w . f a c e b o o k . c o m / L i f e r a y