SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
ARCHITECTUREARCHITECTURE
HÉXAGONALEHÉXAGONALE
HUMAN TALKS LYONHUMAN TALKS LYON
11 OCTOBRE11 OCTOBRE 20162016
EN 10 MINUTES !EN 10 MINUTES !
JEAN DETOEUFJEAN DETOEUF
DÉVELOPPEURDÉVELOPPEUR
Passionné de nouvelles technologies
#jvm #docker #craftsmanship #rpi #diy
Qui a déjà tenté de changer de framework (DI, ORM, ...) ?
C'est galère ?
Code framework au milieu du code métier
Difficulté pour changer de framework
Tests trop lourds
ARCHITECTURE EN COUCHEARCHITECTURE EN COUCHE
Simple à comprendre
Montre le flux de données
ARCHITECTURE EN COUCHEARCHITECTURE EN COUCHE
Simple avec une couche de présentation et une couche de
persistence
Les couches se mélangent dans le code
ARCHITECTURE HÉXAGONALEARCHITECTURE HÉXAGONALE
Permet d'isoler le code métier du code d'infrastructure
Agnostique : amenez votre langage préféré
Framework killer
LANCEMENT D'UN PROJETLANCEMENT D'UN PROJET
Reporter les choix techniques
Connaissance métier limitée en début de projet
Temps
Connaissance
métier
CONCEPTCONCEPT
Code métier sans bibliothèque ni framework
Code technique dans des modules séparés
Métier
API REST
BDD Oracle
BDD
Cassandra
IHM
Alertes
Messaging
TESTS SIMPLIFIÉSTESTS SIMPLIFIÉS
Découpage des taches simplifié
TDD : dev/test métier, puis autres modules
Tests métier sans avoir à gérer l'infra
Validation rapide du métier
ON COMMENCE QUAND ?ON COMMENCE QUAND ?
nouveau projet : simple à mettre en place
projet existant : démêlage de spaghettis
PERSPECTIVESPERSPECTIVES
Changer de framework
Changer de BDD
Migrer une partie des données (ie. SQL vers NoSQL)
Ajouter une interface (API, messaging, autre IHM)
PERMÉABILITÉPERMÉABILITÉ
Impossible d'utiliser du code "infra" dans le module
"métier"
Rien n'empêche d'avoir du code "métier" qui se retrouve
dans les modules "infra"
RETOUR D'EXPÉRIENCERETOUR D'EXPÉRIENCE
C'est le code "métier" qui va diriger le code "infra"
Penser à la performance (ie requête SQL dans une boucle)
DANS QUELS CAS NE PAS L'UTILISERDANS QUELS CAS NE PAS L'UTILISER
Framework
Librairie
Module technique
PREMIER PAS VERS LE DDDPREMIER PAS VERS LE DDD
Faire communiquer plusieurs héxagones, chacun
représentant un métier séparé
Un amateur pour faire une présentation du DDD ?
QUESTIONS ?QUESTIONS ?
MERCI POUR VOTRE ÉCOUTEMERCI POUR VOTRE ÉCOUTE
Cette présentation :
@thebignet
thebignet
talk-archi-hexa

Weitere ähnliche Inhalte

Was ist angesagt?

Enterprise Architecture Approach Togaf 9
Enterprise Architecture Approach   Togaf 9Enterprise Architecture Approach   Togaf 9
Enterprise Architecture Approach Togaf 9
Prashant Patade
 

Was ist angesagt? (20)

ArchiMate 3.0: A New Standard for Architecture
ArchiMate 3.0: A New Standard for ArchitectureArchiMate 3.0: A New Standard for Architecture
ArchiMate 3.0: A New Standard for Architecture
 
SFIA - overview for new users
SFIA - overview for new usersSFIA - overview for new users
SFIA - overview for new users
 
Building a strong Data Management capability with TOGAF and ArchiMate
Building a strong Data Management capability with TOGAF and ArchiMateBuilding a strong Data Management capability with TOGAF and ArchiMate
Building a strong Data Management capability with TOGAF and ArchiMate
 
A Comparative Study of Data Management Maturity Models
A Comparative Study of Data Management Maturity ModelsA Comparative Study of Data Management Maturity Models
A Comparative Study of Data Management Maturity Models
 
Data Architecture Strategies: Data Architecture for Digital Transformation
Data Architecture Strategies: Data Architecture for Digital TransformationData Architecture Strategies: Data Architecture for Digital Transformation
Data Architecture Strategies: Data Architecture for Digital Transformation
 
Togaf notes
Togaf notesTogaf notes
Togaf notes
 
Value Stream Architecture: What it is and how it can help
Value Stream Architecture: What it is and how it can helpValue Stream Architecture: What it is and how it can help
Value Stream Architecture: What it is and how it can help
 
ArchiMate application and data architecture layer - Simplify the models
ArchiMate application and data architecture layer - Simplify the modelsArchiMate application and data architecture layer - Simplify the models
ArchiMate application and data architecture layer - Simplify the models
 
Architecture governance
Architecture governanceArchitecture governance
Architecture governance
 
Practical Enterprise Architecture in Medium-size Corporation using TOGAF
Practical Enterprise Architecture in Medium-size Corporation using TOGAFPractical Enterprise Architecture in Medium-size Corporation using TOGAF
Practical Enterprise Architecture in Medium-size Corporation using TOGAF
 
TOGAF 9 Architectural Artifacts
TOGAF 9  Architectural ArtifactsTOGAF 9  Architectural Artifacts
TOGAF 9 Architectural Artifacts
 
Enterprise Architecture Approach Togaf 9
Enterprise Architecture Approach   Togaf 9Enterprise Architecture Approach   Togaf 9
Enterprise Architecture Approach Togaf 9
 
Business Architecture as an Approach to Connect Strategy & Projects
Business Architecture as an Approach to Connect Strategy & ProjectsBusiness Architecture as an Approach to Connect Strategy & Projects
Business Architecture as an Approach to Connect Strategy & Projects
 
Approaches to business architecture
Approaches to business architectureApproaches to business architecture
Approaches to business architecture
 
Enterprise Architecture - An Introduction from the Real World
Enterprise Architecture - An Introduction from the Real World Enterprise Architecture - An Introduction from the Real World
Enterprise Architecture - An Introduction from the Real World
 
On business capabilities, functions and application features
On business capabilities, functions and application featuresOn business capabilities, functions and application features
On business capabilities, functions and application features
 
Business analyst
Business analystBusiness analyst
Business analyst
 
Introduction to Enterprise architecture and the steps to perform an Enterpris...
Introduction to Enterprise architecture and the steps to perform an Enterpris...Introduction to Enterprise architecture and the steps to perform an Enterpris...
Introduction to Enterprise architecture and the steps to perform an Enterpris...
 
Data-Ed Online: Data Management Maturity Model
Data-Ed Online: Data Management Maturity ModelData-Ed Online: Data Management Maturity Model
Data-Ed Online: Data Management Maturity Model
 
Modeling TOGAF with ArchiMate
Modeling TOGAF with ArchiMateModeling TOGAF with ArchiMate
Modeling TOGAF with ArchiMate
 

Ähnlich wie Architecture héxagonale

Ähnlich wie Architecture héxagonale (20)

Docker, Pierre angulaire du continuous delivery ?
Docker, Pierre angulaire du continuous delivery ?Docker, Pierre angulaire du continuous delivery ?
Docker, Pierre angulaire du continuous delivery ?
 
Réutilisation de code entre windows 8 et windows phone 8
Réutilisation de code entre windows 8 et windows phone 8Réutilisation de code entre windows 8 et windows phone 8
Réutilisation de code entre windows 8 et windows phone 8
 
Software Craftsmanship : en Pratique - AgileTour
Software Craftsmanship : en Pratique - AgileTourSoftware Craftsmanship : en Pratique - AgileTour
Software Craftsmanship : en Pratique - AgileTour
 
Dev ops - Contiuous delivery
Dev ops - Contiuous deliveryDev ops - Contiuous delivery
Dev ops - Contiuous delivery
 
Réutilisation de code entre Windows 8 et Windows Phone 8.
Réutilisation de code entre Windows 8 et Windows Phone 8.Réutilisation de code entre Windows 8 et Windows Phone 8.
Réutilisation de code entre Windows 8 et Windows Phone 8.
 
Infra as Code, choisissez vous la pilule rouge ou la pilule bleue - Devoxx 2016
Infra as Code, choisissez vous la pilule rouge ou la pilule bleue - Devoxx 2016Infra as Code, choisissez vous la pilule rouge ou la pilule bleue - Devoxx 2016
Infra as Code, choisissez vous la pilule rouge ou la pilule bleue - Devoxx 2016
 
Paris Container Day 2016 : Architecture microservices hautement disponible au...
Paris Container Day 2016 : Architecture microservices hautement disponible au...Paris Container Day 2016 : Architecture microservices hautement disponible au...
Paris Container Day 2016 : Architecture microservices hautement disponible au...
 
Alter Way's digitalks - Docker : des conteneurs pour tout faire ?
Alter Way's digitalks - Docker  : des conteneurs pour tout faire ?Alter Way's digitalks - Docker  : des conteneurs pour tout faire ?
Alter Way's digitalks - Docker : des conteneurs pour tout faire ?
 
Alter Way's digitalks - Docker : des conteneurs pour tout faire ?
Alter Way's digitalks - Docker  : des conteneurs pour tout faire ? Alter Way's digitalks - Docker  : des conteneurs pour tout faire ?
Alter Way's digitalks - Docker : des conteneurs pour tout faire ?
 
Daily ddd
Daily dddDaily ddd
Daily ddd
 
Software Craftsmanship: En pratique
Software Craftsmanship: En pratiqueSoftware Craftsmanship: En pratique
Software Craftsmanship: En pratique
 
Be zend docker
Be zend dockerBe zend docker
Be zend docker
 
La Duck Conf - Les fakes news du low-code
La Duck Conf - Les fakes news du low-code La Duck Conf - Les fakes news du low-code
La Duck Conf - Les fakes news du low-code
 
Visual studio 2012
Visual studio 2012Visual studio 2012
Visual studio 2012
 
Réactif, parallèle, asynchrone. Pourquoi!
Réactif, parallèle, asynchrone. Pourquoi!Réactif, parallèle, asynchrone. Pourquoi!
Réactif, parallèle, asynchrone. Pourquoi!
 
La Duck Conf 2018 : "Une infrastructure peut en cacher une autre !"
La Duck Conf 2018 : "Une infrastructure peut en cacher une autre !"La Duck Conf 2018 : "Une infrastructure peut en cacher une autre !"
La Duck Conf 2018 : "Une infrastructure peut en cacher une autre !"
 
REX Devops Docker
REX Devops DockerREX Devops Docker
REX Devops Docker
 
REX Devops Docker
REX Devops DockerREX Devops Docker
REX Devops Docker
 
Nuit du Hack 2K16 - Scénarios d'attaques sur un système industriel
Nuit du Hack 2K16 - Scénarios d'attaques sur un système industrielNuit du Hack 2K16 - Scénarios d'attaques sur un système industriel
Nuit du Hack 2K16 - Scénarios d'attaques sur un système industriel
 
Meetup DevOps Aix-Marseille - théorie du chaos et architectures résilientes
Meetup DevOps Aix-Marseille - théorie du chaos et architectures résilientesMeetup DevOps Aix-Marseille - théorie du chaos et architectures résilientes
Meetup DevOps Aix-Marseille - théorie du chaos et architectures résilientes
 

Architecture héxagonale