Skip to content

External Module

Calling External System

Rest, Soap, gRpc, GraphQL, IA strategy, etc.

First, You must create or have an output port in the application service layer. So, You create an adapter for implement these ports.

flowchart LR
   subgraph application service
       output_port
   end
   subgraph external module
     secondary_adapter
   end
    output_port --> secondary_adapter

Part I.

  • DTO to client specific.
  • Mappers

Part II.

  • Implementing output ports(Publishers/Producers)
    • Secondary Adapter

Dependencies

pom.xml
1
2
3
4
5
6
7
<dependencies>
    <dependency>
        <groupId>com.lg5.spring</groupId>
        <artifactId>lg5-spring-client</artifactId>
    </dependency>
    ...
</dependencies>