@startuml

!include ./smc_components_base.puml
!include ./smc_components_separate_db.puml

[kafka]

package "Kupol mgmnt docker" {
    interface "SMC\nKafka\nconsumer" as smc_kafka_consumer
    interface "SMC\nKafka\nproducer" as smc_kafka_producer
    [smc_backend] -right[#red,thickness=2]- smc_kafka_consumer
    [smc_backend] -up[#red,thickness=2]- smc_kafka_producer
}

smc_kafka_consumer <-right[#red,thickness=2]- [kafka]
smc_kafka_producer -right[#red,thickness=2]-> [kafka]

package "Kupol request center" {
    interface "RC\nKafka\nconsumer" as rc_kafka_consumer
    interface "RC\nKafka\nproducer" as rc_kafka_producer
    [rc_backend] -up[#red,thickness=2]- rc_kafka_consumer
    [rc_backend] -left[#red,thickness=2]- rc_kafka_producer
}

rc_kafka_consumer <-right[#red,thickness=2]- [kafka]
rc_kafka_producer -right[#red,thickness=2]-> [kafka]
@enduml