Skip to content
/ atomfeed Public

An ATOM implementation in Java to broadcast and consume events.

Notifications You must be signed in to change notification settings

ICT4H/atomfeed

Repository files navigation

Atomfeed Build Status

AtomFeed is an implementation of the ATOM protocol in Java. It consists of the following modules

  • atomfeed-server - An ATOM server implementaion that broadcasts events
  • atomfeed-client - An ATOM client implementation that consumes events.
  • atomfeed-spring-server - A spring wrapper on atomfeed-server

Design

AtomFeed is designed to work in a clustered evnironment. Our only point of synchronisation is the database

We allow for two different pagination strategies. Time and Number based pagination.

  • Number based pagination works by creating chunks based on sequence ids.
  • Time based pagination works by creating chunks based on timestamps of created events.

By allowing support to these two pagination mechanisms, AtomFeed works with databases that support auto incrementing Ids and those that don't.

AtomFeed has the ability to support multiple changes to the pagination chunk size after the module has been installed and feeds have been generated. As expected, this change will only affect the feeds created after the change in pagination chunk size has been effected.

Please take a look at the documentation to see how this can be achieved.

Build

To build:

  • mvn compile
  • mvn test

To install:

  • Create a Postgres DB and update atomfeed-server/maven.properties with credentials.
  • mvn install -P IT -DskipTests

To start up:

  • Create the DB tables by running install (see above).
  • Update atomfeed-standalone/src/main/resources/atomfeed.properties with Postgres credentials.
  • cd atomfeed-standalone
  • mvn jetty:run -P IT

To integration test:

  • mvn integration-test -P IT

Usage

Atomfeed server, client and spring-server atrefacts have been been published to maven central.

To use atomfeed-server -

<dependency>
  <groupId>org.ict4h</groupId>
  <artifactId>atomfeed-server</artifactId>
  <version>0.9.1</version>
</dependency>

Please check maven central to get the latest version of the published artefacts.

Documentation

Please see the wiki for documentation on using Atomfeed.

License

About

An ATOM implementation in Java to broadcast and consume events.

Resources

Stars

Watchers

Forks

Packages

No packages published