/**
 * Kafka Configuration
 */

export interface KafkaConfig {
  brokers: string[];
  clientId: string;
  groupId: string;
}

export const kafkaConfig = (): KafkaConfig => ({
  brokers: (process.env.KAFKA_BROKERS || 'localhost:9092').split(','),
  clientId: process.env.KAFKA_CLIENT_ID || 'mpc-party-service',
  groupId: process.env.KAFKA_GROUP_ID || 'mpc-party-group',
});
