Pulsar admin interfaces - Tools
You can manage Pulsar entities through the Pulsar admin layer via one of the following tools:
Pulsar admin APIs
Java admin API: It’s a programmable interface written in Java.
Go admin API (coming soon)
REST API: HTTP calls, which are made against the admin APIs provided by brokers. In addition, both the Java admin API and pulsar-admin CLI use the REST API.
pulsar-admin CLI: It’s a command-line tool and is available in the bin folder of your Pulsar installation.
Here are the explanations and comparisons of these tools.
Category | Tools | When to use | Considerations |
---|---|---|---|
Pulsar admin APIs | Java admin API | - If you want to implement your own admin interface client using Java and manage clusters. - If you want to manage resources programmatically rather than relying on external tools inside of unit tests. - If you want to use admin APIs in Java applications. | - This method is only available in Java. - It needs more development work if you want to use it to build applications. |
Pulsar admin APIs | REST API | - If you want to implement your own admin interface client using other languages and manage clusters using scripts. | - This method is the most complicated. - It needs more development work if you want to use it to build applications. |
Pulsar admin CLI | pulsar-admin CLI | - If you want to get started with Pulsar admin APIs with minimal effort (e.g., no need to prepare an extra environment). - If you want to perform common administrative tasks. | - This method is the most easy-to-use. - It’s challenging to use this method to build applications. - It takes a little more time because JVM starts slowly. |
Related topics
To understand the basics, see Pulsar admin API - Overview
To learn usage scenarios, see Pulsar admin API - Use cases.
To learn common administrative tasks, see Pulsar admin API - Features.
To get up quickly, see Pulsar admin API - Get started.
To check the detailed usage, see the API references below.