I created a minimal example to visualize my problem:
With this code everything works as expected:
@startuml
component A
component B
A -> B: request
B -> A: response
@enduml
But when I put A and B in rectangles, the arrows for request and response overlap so they can't be read anymore:
@startuml
rectangle "1" {
component A
}
rectangle "2" {
component B
}
A -> B: request
B -> A: response
@enduml
Any ideas how to fix this?