nats-io / stan.js

Node.js client for NATS Streaming
Apache License 2.0
293 stars 49 forks source link

If it’s streaming client, how can I send and receive node stream? #176

Closed reklatsmasters closed 4 years ago

reklatsmasters commented 4 years ago

Just example, how can I send and receive file? It more looks like simplified task queue.

aricart commented 4 years ago

not quite sure I understand your question. NATS is a messaging platform, and as such, it is payload agnostic. This means that a message can carry any payload. NATS-Streaming is a persistence technology built on top of NATS. NATS Streaming is intended for persisting data that can be read and processed at a later time.

If you want to move files between nodes, etc. You don't need NATS streaming. You can easily implement a service that listens for requests to some particular data, and in response, returns it. The data for the response could be sent over several messages.

aricart commented 4 years ago

The following documentation may be useful as an introduction to the system: NATS NATS Streaming

aricart commented 4 years ago

@reklatsmasters Feel free to reopen this issue if you have additional questions. You can also join our slack community