Dynamic Configuration from AWS S3 Bucket

AWS S3 Bucket source for JSON Dynamic Properties

License

License

GroupId

GroupId

com.comcast.dynocon
ArtifactId

ArtifactId

dynocon-s3
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Dynamic Configuration from AWS S3 Bucket
AWS S3 Bucket source for JSON Dynamic Properties

Download dynocon-s3

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
com.comcast.dynocon : dynocon-core jar 1.1.0
com.amazonaws : aws-java-sdk-s3 jar 1.11.1008

test (2)

Group / Artifact Type Version
junit : junit jar 4.13.1
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

Dynamic Configuration

Comcast Dynamic Configurattion - dynocon is on the mission of adapting the Configuration-as-a-Code concept.

Dynocon library allows your application to get access to the latest configuration changes without restarting.

JSON is a first-class citizen and supported out of the box as well as the traditional .properties format.

Installation

<dependency>
	<groupId>com.comcast.dynocon</groupId>
	<artifactId>dynocon-core</artifactId>
	<version>1.1.0</version>
</dependency>

Example

If your JSON configuration looks like this:

{
  "myPropertyName": "value1"
}

or you are using traditional .properties file:

myPropertyName = value1

You could always access the property as following:

public static final Property<String> MY_PROPERTY = new Property<>("myPropertyName", String.class);
... SNIP ...
Assert.assertEquals("value1", MY_PROPERTY.get());

If the value in the file will be updated, you don't need to restart the application, MY_PROPERTY.get() will return the new value.

See Wiki for a full description of the dynocon library.

com.comcast.dynocon
Comcast brings together the best in media and technology to create the world's best entertainment and online experiences

Versions

Version
1.1.0