Architecture Intermediate
Pub/Sub vs Point-to-Point¶
Pub/SubMessagingKafka 3 min read
Rozdíl between pub/sub a point-to-point messaging. When to use který model.
Point-to-Point¶
Zpráva doručena právě jednomu konzumentovi. Competing consumers.
Pub/Sub¶
Zpráva doručena všem odběratelům. Event broadcasting.
Kafka — obojí¶
# Pub/Sub — různé consumer groups
Topic: order-events
Group "billing" → všechny eventy
Group "shipping" → všechny eventy
# Point-to-Point — stejná group
Group "processors"
→ Consumer A (partition 0)
→ Consumer B (partition 1)
Summary¶
Point-to-Point pro processing úloh. Pub/Sub pro broadcasting. Kafka elegantně solves obojí.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.