Pronghorn MongoDB Driver Stream

Allows using Pronghorn as the IO handler for the MongoDB Async Driver.

License

License

Categories

Categories

MongoDB Data Databases
GroupId

GroupId

tech.pronghorn
ArtifactId

ArtifactId

mongodb-driver-stream
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

Pronghorn MongoDB Driver Stream
Allows using Pronghorn as the IO handler for the MongoDB Async Driver.
Project URL

Project URL

https://pronghorn.tech
Source Code Management

Source Code Management

https://github.com/pronghorn-tech/mongodb-driver-stream.git

Download mongodb-driver-stream

How to add to project

<!-- https://jarcasting.com/artifacts/tech.pronghorn/mongodb-driver-stream/ -->
<dependency>
    <groupId>tech.pronghorn</groupId>
    <artifactId>mongodb-driver-stream</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/tech.pronghorn/mongodb-driver-stream/
implementation 'tech.pronghorn:mongodb-driver-stream:0.2.1'
// https://jarcasting.com/artifacts/tech.pronghorn/mongodb-driver-stream/
implementation ("tech.pronghorn:mongodb-driver-stream:0.2.1")
'tech.pronghorn:mongodb-driver-stream:jar:0.2.1'
<dependency org="tech.pronghorn" name="mongodb-driver-stream" rev="0.2.1">
  <artifact name="mongodb-driver-stream" type="jar" />
</dependency>
@Grapes(
@Grab(group='tech.pronghorn', module='mongodb-driver-stream', version='0.2.1')
)
libraryDependencies += "tech.pronghorn" % "mongodb-driver-stream" % "0.2.1"
[tech.pronghorn/mongodb-driver-stream "0.2.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.2.31
tech.pronghorn : server jar 0.2.1
org.mongodb : mongodb-driver-async jar 3.5.0

test (6)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.1.0
org.mockito : mockito-core jar 2.16.0
tech.pronghorn : plugin-collections-jctools jar 0.2.1
tech.pronghorn : plugin-hashing-openhft jar 0.2.1
tech.pronghorn : plugin-logging-slf4j jar 0.2.1
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

Pronghorn MongoDB Driver Stream

This library implements the Stream interface of the MongoDB Async Driver via the Pronghorn Coroutine Framework. It utilizes the cooperative nature of concurrency in Pronghorn to enable efficient multiplexing of database communication, yielding significant performance benefits.

Quick Start

Utilizing this library within a Pronghorn based application simply requires creating an async MongoDB client via the provided factory implementation.

val multiplexedFactory = MultiplexMongoDBStreamFactoryFactory(worker)
val settings = MongoClientSettings.builder()
                .streamFactoryFactory(multiplexedFactory)
                ...[other settings]
                .build()

        val client = MongoClients.create(settings)

Since the MultiplexMongoDBStreamFactoryFactory constructor takes a worker argument, a separate client should be created per worker.

License

Copyright 2017 Pronghorn Technology LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

tech.pronghorn

Pronghorn Technology

Developer of high performance JVM systems, including the Pronghorn HTTP Server and Pronghorn Coroutine Framework

Versions

Version
0.2.1
0.2.0
0.1.3
0.1.2