随着系统并发数量的增加,单纯得靠esl接收freeswitch的事件的方式会造成系统的性能瓶颈,为了提供系统并发量,业务系统和freeswitch达到解耦目的,特开发mod_event_kafka模块。
参数配置如下
<configuration name="event_kafka.conf" description="Kafka Event Configuration">
<settings>
<param name="bootstrap-servers" value="localhost:9092"/>
<param name="topic-prefix" value="topic_prefix"/>
<param name="topic" value="" /> <!-- set either topic-prefix or topic, incase both are defined topic value would be used. -->
<param name="username" value="" /> <!-- set it only if you have sasl enabled on your kafka cluster -->
<param name="password" value="" />
<param name="buffer-size" value="16" />
<param name="compression" value="snappy"/>
<param name="event-filter" value=""/> <!-- set it to a valid list of events if you want to filter. Default empty doesn't filter any event -->
<param name="event-whitelists" value=""/> &l

为了解决系统并发量增加导致的性能瓶颈问题,本文介绍了通过开发mod_event_kafka模块实现Freeswitch与业务系统之间的解耦。该模块配置了Kafka服务器地址、主题前缀等参数,并提供了事件过滤和字段筛选功能,从而显著提升了系统性能。
最低0.47元/天 解锁文章
3451





