# Connect to a PULSAR broker instead of MQTT

**URL:** <https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444>\
**Category:** General\
**Created:** [12 February 2024 09:48 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444 "2024-02-12T09:48:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexblav](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexblav/32/88243_2.png) [@alexblav](https://discourse.nodered.org/u/alexblav)\
**Post date:** [12 February 2024 09:48 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/1 "2024-02-12T09:48:46Z")

</div>

Hello,

I'm new to this forum. I manipulate a little Node-red for my home automation.  
For my TUYA components, I will need to connect to a PULSAR broker instead of MQTT.  
I've seen MQTT nodes but not Pulsar. Does anyone know how to use pulsar with Node-red?

Thanks

---

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [12 February 2024 10:04 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/2 "2024-02-12T10:04:16Z")

</div>

> [@alexblav](#):
>
> PULSAR

I would start here on the documentation from PULSAR  
[https://pulsar.apache.org/docs/3.1.x/client-libraries-node/](https://pulsar.apache.org/docs/3.1.x/client-libraries-node/)  
It looks like they have a nodeJS client on npm.  
[https://www.npmjs.com/package/pulsar-client](https://www.npmjs.com/package/pulsar-client)

You may be able to add it to the function node.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [12 February 2024 11:19 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/3 "2024-02-12T11:19:34Z")

</div>

I assume that you already have access to a PULSAR server? I note that, in typical (and annoying) Apache fashion, it requires Java and does not talk about memory/cpu resource constraints. If you need to run your own server, be warned that it might push a limited device such as a 1GB RAM Pi over the edge.

---

<div class="post-metadata">

**Author:** ![alexblav](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexblav/32/88243_2.png) [@alexblav](https://discourse.nodered.org/u/alexblav)\
**Post date:** [12 February 2024 12:47 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/4 "2024-02-12T12:47:39Z")

</div>

Thank you 2

The purpose of my request is not to set up a PULSAR server. I'm just looking for a node to connect to a PULSAR server on the WAN. TUYA provides the server.

@meeki007: I must admit I'm not sure of my programming skills. But I'll give it a try.

If I understand correctly, node.js code is Javascript if I use it more or less raw I should be able to use it in node Function Node-red. Is that it?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 February 2024 13:03 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/5 "2024-02-12T13:03:51Z")

</div>

You use the npm [client module](https://www.npmjs.com/package/pulsar-client) @meeki007 suggested in a function node.

Here is an article that might help: [Use any npm module in Node-RED • FlowFuse](https://flowfuse.com/blog/2023/06/import-modules/)

---

<div class="post-metadata">

**Author:** ![alexblav](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexblav/32/88243_2.png) [@alexblav](https://discourse.nodered.org/u/alexblav)\
**Post date:** [13 February 2024 05:34 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/6 "2024-02-13T05:34:08Z")

</div>

Thank you very much,

I'll look into it. I just hope that my installation with HomeAssistant won't give me any trouble.

Thanks again

---

<div class="post-metadata">

**Author:** ![alexblav](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexblav/32/88243_2.png) [@alexblav](https://discourse.nodered.org/u/alexblav)\
**Post date:** [23 February 2024 06:20 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/7 "2024-02-23T06:20:16Z")

</div>

Hello and thank you

I was able to look at your posts I'll have to dig into nodejs node-red interaction a bit later.

In the meantime Tuya got back to me about using Pulsar and given the prices I'm going to go back to something more basic.

Thanks again

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 March 2024 06:20 UTC](https://discourse.nodered.org/t/connect-to-a-pulsar-broker-instead-of-mqtt/85444/8 "2024-03-08T06:20:57Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
