Pulsar目前有以下语言的客户端库:
Java客户端
关于使用Pulsar Java客户端生产和消费消息的教程,请参阅 Pulsar Java客户端。
有两组独立的Javadoc API文档:
| 库 | 作用 |
|---|---|
org.apache.pulsar.client.api | 用于生产和消费Pulsar主题消息的 Pulsar Java客户端 |
org.apache.pulsar.client.admin | Pulsar管理接口的Java客户端 |
Go客户端
有关使用Pulsar Go客户端的教程,请参阅 Pulsar Go客户端。
Python客户端
有关使用Pulsar Python客户端的教程,请参阅 Pulsar Python客户端。
这里有提供的文档:http://pulsar.apache.org/api/python
C++客户端
有关使用Pulsar C++客户端的教程,请参阅 Pulsar C++客户端。
这里有提供的文档:http://pulsar.apache.org/api/cpp
目前客户端之间的支持功能比较
| Feature | Java | C++ | Go | Python | WebSocket |
|---|---|---|---|---|---|
| Partitioned topics | ✅ | ✅ | ✅ | ✅ | ✅ |
| Batching | ✅ | ✅ | ✅ | ✅ | ✅ |
| Compression | ✅ | ✅ | ✅ | ✅ | ✅ |
| TLS | ✅ | ✅ | ✅ | ✅ | ✅ |
| Authentication | ✅ | ✅ | ✅ | ✅ | ✅ |
| Reader API | ✅ | ✅ | ✅ | ✅ | ✅ |
| Proxy Support | ✅ | ✅ | ✅ | ✅ | ✅ |
| Effectively-Once | ✅ | ✅ | ✅ | ✅ | ❌ |
| Schema | ✅ | ❌ | |||
| Consumer seek | ✅ | ✅ | ✅ | ❌ | |
| Multi-topics consumer | ✅ | ❌ | |||
| Topics regex consumer | ✅ | ❌ | |||
| Compacted topics | ✅ | ✅ | ✅ | ❌ | |
| User defined properties producer/consumer | ✅ | ❌ | |||
| Reader hasMessageAvailable | ✅ | ✅ | ✅ | ❌ | |
| Hostname verification | ✅ | ❌ |
In progress
下面是已经在开发的新特性
| Feature | Java | C++ | Go | Python | WebSocket |
|---|---|---|---|---|---|
| Multi-topics consumer | ✅ | ✅ | ✅ | ❌ | |
| Topics regex consumer | ✅ | #2219 | #2219 | ❌ |