Popularity
7.7
Growing
Activity
0.0
Stable
44
5
12
Programming language: Crystal
License: Apache License 2.0
Tags:
Queues And Messaging
NATS.io alternatives and similar shards
Based on the "Queues and Messaging" category.
Alternatively, view NATS.io alternatives based on common mentions on social networks and blogs.
-
mosquito
A background task runner for crystal applications supporting periodic (CRON) and manually queued jobs
Do you think we are missing an alternative of NATS.io or a related project?
Popular Comparisons
README
NATS - Crystal Client
Simple NATS client for the Crystal programming language.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
nats:
github: nats-io/nats.cr
- Run
shards install
Usage
require "nats"
nc = NATS::Connection.new("demo.nats.io")
nc.subscribe("foo") { |msg| puts "Received '#{msg}'"}
nc.publish("foo", "Hello!")
sub = nc.subscribe("req") do |msg|
msg.respond("ANSWER is 42")
end
answer = nc.request("req", "Help!")
puts "Received a response '#{answer}'!"
sub.close
nc.close
License
Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.
*Note that all licence references and agreements mentioned in the NATS.io README section above
are relevant to that project's source code only.