SMART COSMOS Event Stream

Message streaming abstraction endpoint for services that do not need to implement clients.

License

License

Categories

Categories

Net
GroupId

GroupId

net.smartcosmos
ArtifactId

ArtifactId

smartcosmos-events
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

SMART COSMOS Event Stream
Message streaming abstraction endpoint for services that do not need to implement clients.
Project URL

Project URL

http://smartcosmos.net/smartcosmos-events
Project Organization

Project Organization

Smartrac Technology Fletcher, Inc.
Source Code Management

Source Code Management

https://github.com/SMARTRACTECHNOLOGY/smartcosmos-events/tree/master/

Download smartcosmos-events

How to add to project

<!-- https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-events/ -->
<dependency>
    <groupId>net.smartcosmos</groupId>
    <artifactId>smartcosmos-events</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-events/
implementation 'net.smartcosmos:smartcosmos-events:3.1.0'
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-events/
implementation ("net.smartcosmos:smartcosmos-events:3.1.0")
'net.smartcosmos:smartcosmos-events:jar:3.1.0'
<dependency org="net.smartcosmos" name="smartcosmos-events" rev="3.1.0">
  <artifact name="smartcosmos-events" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.smartcosmos', module='smartcosmos-events', version='3.1.0')
)
libraryDependencies += "net.smartcosmos" % "smartcosmos-events" % "3.1.0"
[net.smartcosmos/smartcosmos-events "3.1.0"]

Dependencies

compile (4)

Group / Artifact Type Version
net.smartcosmos : smartcosmos-framework jar 3.1.0
net.smartcosmos : smartcosmos-framework-messaging jar 3.1.0
net.smartcosmos : smartcosmos-framework-monitoring jar 3.1.0
org.springframework.boot : spring-boot-starter-validation jar

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar

test (4)

Group / Artifact Type Version
net.smartcosmos : smartcosmos-framework-test jar 3.1.0
org.springframework.boot : spring-boot-starter-test jar
org.springframework.kafka : spring-kafka-test jar 1.0.0.RC1
com.jayway.restassured : spring-mock-mvc jar

Project Modules

There are no modules declared in this project.

SMART COSMOS Event Service

Build Status

The SMART COSMOS Objects Event Service is designed to provide an easier entry point for services that do not want to implement the dependencies required to publish messages into a message bus. Moreover, this abstraction enables a greater level of customization for what constitutes the message bus. Lastly, this also provides a non-JAVA entry point for publishing events.

Right now this service takes advantage of consumer subscription groups capable in RabbitMQ enabling a high scalability, fault tolerant mechanism for exchanging events.

Publishing to the Event Bus

Most services are automatically configured with the @EnableSmartCosmos to push events to the service registered as smartcosmos-events in the cluster. As long as this service (or the service designed to replace it) uses that key, then events will be POST to an endpoint at this location. Events that correspond to the following format will be injected into the message bus:

{
  "eventType" : "String", // (1)
  "accountUrn" : "String, Optional", // (2)
  "userUrn" : "String, Optional", // (3)
  "data" : {} // (4)
}
  1. The Event Type, is a String that allows flexibility from developer, although there are several default events featured in DefaultEventTypes

  2. Account that this event is tied to (if applicable)

  3. User that this event is tied to (if applicable)

  4. Actual event data

Watching the Event Bus

Since the messages are sent to rabbitmq, you can watch what is happening with the RabbitMQ Admin GUI

net.smartcosmos

Smart Cosmos Solutions Inc.

Versions

Version
3.1.0
3.0.0