3 Interacting with Pulsar

 

This chapter covers

  • Running a local instance of Pulsar on your development machine
  • Administering a Pulsar cluster using its command-line tools
  • Interacting with Pulsar using the Java, Python, and Go client libraries
  • Troubleshooting Pulsar with its command-line tools

Now that we have covered the overall architecture and terminology of Apache Pulsar, let’s start using it. For local development and testing, I recommend running Pulsar inside a Docker container on your own machine, which provides an easy way to get started with Pulsar with a minimal amount of time, effort, and money. For those of you who would prefer to use a full-size Pulsar cluster, you can refer to appendix A for more details on how to install and run one inside a containerized environment, such as Kubernetes. In this chapter, I will walk you through the process of sending and receiving messages programmatically using the Java API, starting with the process of creating a Pulsar namespace and topic using Pulsar’s administrative tools.

3.1 Getting started with Pulsar

3.2 Administering Pulsar

3.2.1 Creating a tenant, namespace, and topic

3.2.2 Java Admin API

3.3 Pulsar clients

3.3.1 The Pulsar Java client

3.3.2 The Pulsar Python client

3.3.3 The Pulsar Go client

3.4 Advanced administration

3.4.1 Persistent topic metrics

3.4.2 Message inspection

Summary