Skip to content

davidsf/cfml-kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Apache Kafka from CFML

Examples of using apache kafka with cfml.

Installation

Kakfa

  cd <kafka-dir>
  sudo ./bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
  sudo ./bin/kafka-server-start.sh -daemon config/server.properties
  • Create our test topic, mytopic:
  sudo ./bin/kafka-topics.sh --create --topic mytopic --partitions 5 --replication-factor 1 --zookeeper localhost:2181
  • start a console kafka client, so you can see the messages that we will send to it:
  ./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic  mytopic --from-beginning

CFML

    cd cfml-kafka
    commandbox> start server libDirs=lib
  • From the website that opens commandbox, you can send messages to "mytopic" topic and you can see it in the kafka client console.

About

Using Apache Kafka from CFML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages