Skip to content

Commit

Permalink
update dependencies and readme.mds
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcclean committed Oct 27, 2015
1 parent 3c901ec commit 8d2da0f
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 68 deletions.
8 changes: 5 additions & 3 deletions micro-application-register/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,26 @@ This plugin turns any service into a Service Registry client (and optionally ser

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-application-registry/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-application-registry)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-application-registry</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-application-registry:0.62'
compile 'com.aol.microservices:micro-application-registry:x.yz'

## Depends on

micro-client
micro-reactiv
micro-reactive

Import this plugin to add ServiceRegistry functionality, Rest Resource available on

Expand Down
10 changes: 6 additions & 4 deletions micro-boot/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-boot/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-boot)

Add micro-boot to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-boot</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-boot:0.62'
compile 'com.aol.microservices:micro-boot:x.yz'

And also add Grizzly and Jersey (micro-grizzly-with-jersey will add both)

Expand All @@ -25,12 +27,12 @@ Gradle
<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-grizzly-with-jersey</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-grizzly-with-jersey:0.62'
compile 'com.aol.microservices:micro-grizzly-with-jersey:x.yz'


## Create a simple server
Expand Down
6 changes: 4 additions & 2 deletions micro-client/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ The NIORestClient is available as Spring bean. AsyncRestClient can simply be in

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-client)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-client</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-client:0.62'
compile 'com.aol.microservices:micro-client:x.yz'
7 changes: 5 additions & 2 deletions micro-core/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ This module imports your configured plugins, starts and manages your JEE webserv

## To use


[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-core)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-core</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-core:0.62'
compile 'com.aol.microservices:micro-core:x.yz'
6 changes: 4 additions & 2 deletions micro-cors/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ Set response headers for Cross Domain support via a Servlet Filter

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-cors/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-cors)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-cors</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-cors:0.62'
compile 'com.aol.microservices:micro-cors:x.yz'
7 changes: 5 additions & 2 deletions micro-data/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ Creates a DataSource Spring Bean with name "mainDataSource" from v0.63 this will

## To use


[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-data/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-data)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-data</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-data:0.62'
compile 'com.aol.microservices:micro-data:x.yz'

# Configuring a data source

Expand Down
6 changes: 4 additions & 2 deletions micro-events/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ This adds a facility to capture events such as requests, request execution and s

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-events/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-events)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-events</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-events:0.62'
compile 'com.aol.microservices:micro-events:x.yz'

### Depends on

Expand Down
6 changes: 4 additions & 2 deletions micro-grizzly-with-jersey/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ Convenience module that packages Grizzly, Jersey and Microserver together

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-grizzly-with-jersey/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-grizzly-with-jersey)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-grizzly-with-jersey</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-grizzly-with-jersey:0.62'
compile 'com.aol.microservices:micro-grizzly-with-jersey:x.yz'
6 changes: 4 additions & 2 deletions micro-grizzly/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ Plugin that allows the Grizzly Web server to be used with Microserver.

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-grizzly/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-grizzly)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-grizzly</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-grizzly:0.62'
compile 'com.aol.microservices:micro-grizzly:x.yz'
4 changes: 2 additions & 2 deletions micro-guava/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
description = 'micro-guava'
dependencies {

compile group: 'com.google.guava', name: 'guava', version:'18.0'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-guava', version:'2.5.2'
compile 'com.google.guava:guava:19.0-rc2'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-guava:2.6.3'
compile project(':micro-core')
testCompile project(':micro-grizzly')
testCompile project(':micro-jersey')
Expand Down
6 changes: 4 additions & 2 deletions micro-guava/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ This plugin

Simply add to the classpath

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-guava/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-guava)

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-guava</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-guava:0.62'
compile 'com.aol.microservices:micro-guava:x.yz'


# Example Guava Resource
Expand Down
6 changes: 4 additions & 2 deletions micro-jersey/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ Plugin that allows the Jersey to be used as the jax-rs implementation with Micro

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-jersey/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-jersey)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-jersey</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-jersey:0.62'
compile 'com.aol.microservices:micro-jersey:x.yz'
1 change: 1 addition & 0 deletions micro-machine-stats/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

Uses Sigar to capture machine stats for each service (CPU load, memory usage etc)

Work in Progress.
6 changes: 4 additions & 2 deletions micro-metrics/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ This adds support for Dropwizard metrics annotations on Spring beans. For more d

## To use

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-metrics/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-metrics)

Simply add to the classpath

Maven

<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-metrics</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
Gradle

compile 'com.aol.microservices:micro-metrics:0.62'
compile 'com.aol.microservices:micro-metrics:x.yz'

# Configuring Metrics Reporters

Expand Down
26 changes: 15 additions & 11 deletions micro-reactive/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ Also can run standalone outside of Microserver

## To use


[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-reactive/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.aol.microservices/micro-reactive)

Simply add to the classpath

Maven

```xml
<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-reactive</artifactId>
<version>0.62</version>
<version>x.yz</version>
</dependency>
```
Gradle

```groovy
compile 'com.aol.microservices:micro-reactive:0.62'

```

## Reactive mixin

implement com.aol.micro.server.reactive.Reactive to add Reactive functionality via [simple-react](https://github.com/aol/simple-react).
Expand Down Expand Up @@ -68,30 +72,30 @@ Find active jobs currently running (making use of @Suspended AsyncResponse async
The Pipes class can manage simple-react Adapters (Queues / Topics and Signals). Example using an Agrona wait-free Queue (with mechanical sympathy) :

Register your Pipe (bounded non blocking Queue) which returns a LazyFutureStream for infinite processing & start our server. Any events with the Key "test" passed into our Pipes class (via Reactive.enqueue for example) will be passed straight to our processing Stream.

```java
public static void main(String[] args){
LazyFutureStream<String> stream = Pipes.register("test", QueueFactories.
<String>boundedNonBlockingQueue(100)
.build());
stream.filter(it->it!=null).peek(System.out::println).run();
new MicroserverApp(()-> "simple-app").run();
}

```
NB - in practice with the current version - unless you expect to have a high throughput of data this implementation will be very inefficient (a blocking queue would in many cases perform better). v0.99 of simple-react will introduce native 'wait' strategies for Queues which will perform better than the custom simple-react filter we are using here. To create a pipe with a blocking queue :

```java
Pipes.register("unbounded", new Queue()); // unbounded
Pipes.register("bounded", QueueFactories.boundedQueue(1000)); //bound size 1000

```
Elsewhere in our application we can pass data to our Pipe (e.g. from a REST request, incoming data from an Aeron or Kafka Queue, Scheduled job etc)

```java
@GET
@Produces("text/plain")
@Path("/ping")
public String ping() {
this.enqueue("test","ping : " + next++);
return "ok";
}

```
In this example our processing Stream will simple print

ping : 0
Expand Down
Loading

0 comments on commit 8d2da0f

Please sign in to comment.