Retour aux cas pratiques
MicroservicesFondamental

Correction d'un service 'God Object'

Scénario

Contexte Un fichier unique contient : class OrderService { createOrder() {} calculatePayroll() {} updateInventory() {} } Le Problème Ce service mélange trois domaines métiers distincts. Contraintes Identifier les trois bounded contexts et proposer trois microservices séparés avec leurs endpoints REST principaux. Livrable attendu Une proposition claire de découpage en : OrderService, PayrollService, InventoryService avec routes API associées.

Compétences ciblées

microservicesbounded contextservice designrefactoringrest api
    Correction d'un service 'God Object' — mise en situation Microservices | CodeDuel