Code Monkey home page Code Monkey logo

activemq-apollo's Introduction

The Apollo Project

Synopsis

Apollo is a forked and stripped down Apache ActiveMQ message broker. It is focused on simplicity, stability and scalability.

Implemented Features

  • Topic style message routing
  • Queue style message routing
  • Persistent Messages
  • Message swapping: moves message out of memory to support unlimited queue sizes
  • Message Selectors
  • Queue Browsers
  • REST based management
  • Stomp Protocol Support

What makes Apollo Different?

Building the Source Code

Prerequisites:

Then run:

mvn install -Pdownload

if you're building it for the first time, or just

mvn install

if you already initialized the repo

Quick Start

We are still working on creating a binary distribution. Once that's created we will update these instructions to work off that distribution. Until then, they will be based on a built source distribution.

Running an Apollo Broker

A broker with a web based admin interface will be started by using the the Scala REPL console.

$ cd apollo-web
$ mvn -o scala:console 
... [output ommitted for brevity]
scala> val main = org.apache.activemq.apollo.web.Main
... [output ommitted for brevity]
scala> main run
... [output ommitted for brevity]
Web interface available at: http://localhost:8080/

You can point your web browser at http://localhost:8080/ to explore the management structure of the broker. Additional status objects will become visible once there are connected client which cause connections and destination management objects to be created.

Running Examples

A stomp client will be started by using the the Scala repl console.

$ cd apollo-stomp
$ mvn -o scala:console 
... [output ommitted for brevity]
scala> val client = org.apache.activemq.apollo.stomp.perf.StompLoadClient                 
client: org.apache.activemq.apollo.stomp.perf.StompLoadClient.type = 
--------------------------------------
StompLoadClient Properties
--------------------------------------
uri              = stomp://127.0.0.1:61613
destinationType  = queue
destinationCount = 1
sampleInterval   = 5000

--- Producer Properties ---
producers        = 1
messageSize      = 1024
persistent       = false
syncSend         = false
useContentLength = true
producerSleep    = 0
headers          = List()

--- Consumer Properties ---
consumers        = 1
consumerSleep    = 0
ack              = auto
selector         = null

The above creates a client variable which allows you to customize all the displayed properties. Those properties control how the client applies load to the STOMP broker. You could change the client configuration so that it uses messages with 20 byte contents and send and receive on topics instead of queues:

scala> client.messageSize = 20
scala> client.destinationType = "topic"

Once you are happy with the client configuration, you just run it and wait for it to report back the producer and consumer throughput rates.

scala> client.run                                                        
=======================
Press ENTER to shutdown
=======================

Producer rate: 155,783.906 per second, total: 778,960
Consumer rate: 154,345.969 per second, total: 771,770
Producer rate: 165,831.141 per second, total: 1,608,210
Consumer rate: 165,798.734 per second, total: 1,600,858

activemq-apollo's People

Contributors

chirino avatar cmacnaug avatar dejanb avatar djencks avatar gnodet avatar gtully avatar rajdavies avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.