java - Repository layer as webservice consumer -
i'm designing application architecutre @ company. backend i'm planing use spring boot. backend has call wbeservices tibco amx , expose them other services (rest maybe) our model.
i want use popular layer stack in case:
+-------------------+ +-------------------+ +-------------------+ | | | | | | | controller | | service | | repository | | dto model <----> domain model <----> entity | | | | | | soap/rest client | | | | | | | +-------------------+ +-------------------+ +---------+---------+ | | +---------v---------+ | | | soap | | service | | | +-------------------+
so controller expose dto converted domain model @ service layer.
but have dilemmas repository ?:
do want layer ? maybe service can consume soap service , convert dto ?
if use repository, should expose soap service model (generated wsdl/xsd) or should expose own repository model converted soap model ? -> approach let me exachnge repository layer implementation else without impact on service , above layers , make me change repository interface implementation.
i'll grateful adivce. maybe there good/best practices case (i couldn't find any).
Comments
Post a Comment