Git Product home page Git Product logo

springboot-kafka's Introduction

springboot-kafka

SpringBoot整合kafka

学习链接

  1. https://mp.weixin.qq.com/s/qttczGROYoqSulzi8FLXww 面试官问我如何保证Kafka不丢失消息?我哭了!
  2. https://javaguide.cn/high-performance/message-queue/kafka-questions-01.html Kafka常见问题总结
  3. https://kafka.apache.org/documentation/ Kafka 官方文档
  4. https://github.com/conduktor/kafka-stack-docker-compose Kafka Docker Compose 启动方式
  5. https://github.com/Snailclimb/springboot-kafka JavaGuide SpringBoot 整合kafka的教程

IDEA kafka插件相关

  1. Zoolytic-Zookeeper tool 这是一款 IDEA 提供的 Zookeeper 可视化工具插件,非常好用!我们可以通过它

    • 1.1 可视化ZkNodes节点信息
    • 1.2 ZkNodes节点管理-添加/删除
    • 1.3 编辑zkNodes数据 ...... img_1.png 使用方法: 打开工具:View->Tool windows->Zoolytic; 点击 “+” 号后在弹出框数据:“127.0.0.1:2181” 连接 zookeeper; 连接之后点击新创建的连接然后点击“+”号旁边的刷新按钮即可
  2. Kafkalytic IDEA 提供的 Kafka 可视化管理插件。这个插件为我们提供了下面这写功能:

    • 2.1 多个集群支持
    • 2.2 主题管理:创建/删除/更改分区
    • 2.3 使用正则表达式搜索主题
    • 2.4 发布字符串/字节序列化的消息
    • 2.5 使用不同的策略消费消息 img_2.png 使用方法: 打开工具:View->Tool windows->kafkalytic; 点击 “+” 号后在弹出框数据:“127.0.0.1:9092” 连接;

Kafka 命令相关

  1. kafka-topics --bootstrap-server localhost:9092 --list 列取当前服务端的所有的主题
  2. kafka-topics.sh --describe --topic my-topic --bootstrap-server localhost:9092 描述特定主题
  3. for topic in $(kafka-topics.sh --list --bootstrap-server localhost:9092); do kafka-topics.sh --describe --topic $topic --bootstrap-server localhost:9092; done 检查所有主题及其详细信息
  4. kafka-topics --create --topic quickstart-events --bootstrap-server localhost:9092 创建quickstart-events主题
  5. kafka-topics --describe --topic quickstart-events --bootstrap-server localhost:9092 显示主题quickstart-events的纤细信息
  6. kafka-consumer-groups --bootstrap-server localhost:9092 --list 列出消费组
  7. kafka-consumer-groups --bootstrap-server localhost:9092 --describe --group KafkaConsumer 描述消费组KafkaConsumer

springboot-kafka's People

Contributors

liqi7777 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.