Files
Fulfillment-Backend/external/kafka/producer.py
2025-04-09 16:29:39 +04:00

11 lines
238 B
Python

from aiokafka import AIOKafkaProducer
from backend.config import KAFKA_URL
from external.kafka.context import context
producer = AIOKafkaProducer(
bootstrap_servers=KAFKA_URL,
security_protocol='SSL',
ssl_context=context,
)