_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Apache Pulsar — cloud-native messaging a streaming

03. 10. 2023 1 min read intermediate

Pulsar je messaging platforma nové generace. Oddělení compute od storage, multi-tenancy a tiered storage.

Pulsar vs Kafka

Klíčový rozdíl: stateless brokery + Apache BookKeeper pro storage.

Advantages

  • Multi-tenancy — nativní izolace
  • Tiered storage — offload do S3
  • Geo-replication — vestavěná
  • Pulsar Functions — serverless processing
import pulsar, json

client = pulsar.Client('pulsar://localhost:6650')
producer = client.create_producer('persistent://t/ns/orders')
producer.send(json.dumps(order).encode())

consumer = client.subscribe('persistent://t/ns/orders',
    subscription_name='proc', consumer_type=pulsar.ConsumerType.Shared)
while True:
    msg = consumer.receive()
    process(json.loads(msg.data()))
    consumer.acknowledge(msg)

Summary

Pulsar je alternativa ke Kafce pro multi-tenancy a geo-replikaci. Oddělení compute/storage = lepší škálovatelnost.

apache pulsarmessagingstreamingcloud-native
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.