© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
R. Sharma, M. AtyabCloud-Native Microservices with Apache Pulsarhttps://doi.org/10.1007/978-1-4842-7839-0_2

2. Working with Messages

Rahul Sharma1   and Mohammad Atyab2
(1)
Delhi, Delhi, India
(2)
New Delhi, India
 

Messages have always been an integral part of programming and architecture design. This chapter outlines Apache Pulsar’s message architecture and communication strategies. Let’s begin by exploring the types of messages.

Types of Messages

Let’s consider any two machines, or users, or even code fragments. A message can be defined as an exchange of information between a sender and one or more receivers.

Essentially, a message is an independent, discrete packet ...

Get Cloud-Native Microservices with Apache Pulsar: Build Distributed Messaging Microservices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.