%% Autogenerated event-driven-kafka
graph TD
classDef standard fill:#1e293b,stroke:#38bdf8,stroke-width:1px,color:#e5e7eb;
classDef c-actor fill:#1e293b,stroke:#e5e7eb,stroke-width:1px,stroke-dasharray: 5 5,color:#e5e7eb;
classDef c-compute fill:#422006,stroke:#fb923c,stroke-width:1px,color:#fed7aa;
classDef c-database fill:#064e3b,stroke:#34d399,stroke-width:1px,color:#d1fae5;
classDef c-network fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff;
classDef c-storage fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2;
classDef c-security fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2;
classDef c-gateway fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff;
classDef c-container fill:#422006,stroke:#facc15,stroke-width:1px,color:#fef9c3;
subgraph kafka_infra ["Kafka Infrastructure"]
direction TB
kafka_cluster("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>Kafka Cluster</b><br/><i>service</i><br/><span style='font-size:0.8em'>3+ Brokers for HA</span>")
class kafka_cluster c-compute
zookeeper("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>ZooKeeper Ensemble</b><br/><i>service</i><br/><span style='font-size:0.8em'>Cluster coordination</span>")
class zookeeper c-compute
schema_registry("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>Schema Registry</b><br/><i>service</i><br/><span style='font-size:0.8em'>Avro/Protobuf schemas</span>")
class schema_registry c-compute
monitoring("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>Kafka Manager</b><br/><i>service</i><br/><span style='font-size:0.8em'>Cluster monitoring</span>")
class monitoring c-compute
end
subgraph applications ["Applications"]
direction TB
producers(("<img src="/icons/inframap/user.png" width="32" height="32" /><br/><b>Event Producers</b><br/><i>actor</i><br/><span style='font-size:0.8em'>Microservices publishing event<br/>s</span>"))
class producers c-actor
stream_processors("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>Stream Processors</b><br/><i>service</i><br/><span style='font-size:0.8em'>Kafka Streams apps</span>")
class stream_processors c-compute
consumers("<img src="/icons/inframap/compute.png" width="32" height="32" /><br/><b>Event Consumers</b><br/><i>service</i><br/><span style='font-size:0.8em'>Microservices consuming events</span>")
class consumers c-compute
end
%% Orphans
%% Edges
producers -.-> kafka_cluster
kafka_cluster -.-> schema_registry
kafka_cluster -.-> zookeeper
stream_processors -.-> kafka_cluster
consumers -.-> kafka_cluster
monitoring -.-> kafka_cluster