从零开始构建可扩展的事件驱动系统,使用Kafka消息队列服务

作者:禅与计算机程序设计艺术

1.简介

Apache Kafka是一个分布式流处理平台,由Scala和Java编写而成,能够实时传输、存储和处理大量数据。它作为一个开源项目发布于Apache Software Foundation。本系列文章将带领读者从零开始构建可扩展的事件驱动系统,使用Kafka消息队列服务。文章分两部分,第一部分将重点介绍消息队列及其功能特性,第二部分将演示如何通过Python实现一个简单的Kafka消费者和生产者。

2.消息队列概念和特点

消息队列定义

A message queue is an intermediary that stores messages until they are dealt with by another process or application. The message can be passed through the queue from one end to the other, where it may be stored temporarily or permanently for later processing. Messages in a queue generally follow the first-in-first-out (FIFO) principle. In this arrangement, the oldest message is at the front of the queue and the newest message is at the back.
消息队列(Message Queue)是在两个应用程序或进程之间传递信息的中间件。消息可以从一个端点发送到另一个端点,并在那里临时或永久地存储起来。队列中的消息遵循先进先出的原则。这种安排意味着最老的消息在队首,最近的消息在队尾。

猜你喜欢

转载自blog.csdn.net/universsky2015/article/details/132126857