concept broker in category apache pulsar

appears as: brokers, brokers, broker
Apache Pulsar in Action

This is an excerpt from Manning's book Apache Pulsar in Action.

Pulsar’s stateless brokers in the serving layer also enables the ability to scale the infrastructure down once the spike has past, which translates directly in cost savings in a public cloud environment. Other messaging systems that use a monolithic architecture cannot scale down the nodes due to the fact that the nodes contain data on their attached hard drives. Removal of the excess nodes can only be done once that data has been completely processed or has been moved to another node that will remain in the cluster. Neither of these can be performed in an automated fashion easily.

Secondly, in a monolithic architecture such as Apache Kafka, the broker can only serve requests for data that is stored on an attached disk. This limits the usefulness of auto-scaling the cluster in response to traffic spikes because the newly added nodes to the Kafka cluster will not have any data to serve, and therefore will not be able to handle any of incoming requests to read existing data from the topics. The newly added nodes will only be able to handle write requests.

Figure 2.2: Publishing to a Partitioned Topic
A screenshot of a cell phone Description automatically generated
Listing 6.7 Publishing the TLS Credentials
$ docker run -id --name pulsar -p:6651:6651 -p 8443:8443\    #A
  –volume=${HOME}/exchange:/pulsar/manning/dropbox \    #B
  -t pia/pulsar-standalone-secure:latest    #C
$ docker exec -it pulsar bash
$ /pulsar/manning/security/publish-credentials.sh    #D
$ exit    #E