Integrating with Apache Pulsar

Apache Pulsar is an open-source distributed streaming platform.

Writing to Pulsar

Query results can be written to Pulsar in real-time by creating a materialization.

tenant = "public"
namespace = "default"
topic_name = "model_features"
broker_service_url = "pulsar://"
destination = materialization.PulsarDestination(tenant, namespace, topic_name, broker_service_url)

    name = "MaterializedFeatures",
    destination = destination,
    query = "{
      key: Purchase.customer_id,
      max_amount: Purchase.amount | max(),
      min_amount: Purchase.amount | min(),