Blog

activemq を動かしてみる

brew install apache-activemq
activemq start

で起動完了。

以下のようにして実行開始。

for i in {1..1000}; curl -u admin:admin -d 'body="Hello World"' "http://localhost:8161/api/message/test$i?type=queue"

以下のようにして消費させる。

for i in {1..1000}; curl -u admin:admin "http://localhost:8161/api/message/test$i?type=queue"

しかし、1000 個ぶっこもうとすると途中で止まるので謎い。 (rabbitmq 使うので別にいいんだけど)