Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS-1928] Provided configurable in-memory message cache to handle server resend request #73

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:7.6-jdk11 AS build
FROM gradle:8.7-jdk11 AS build
ARG release_version
COPY ./ .
RUN gradle --no-daemon clean build dockerPrepare -Prelease_version=${release_version}
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# th2-conn-dirty-fix (1.7.0)
# th2-conn-dirty-fix (1.8.0)

This microservice allows sending and receiving messages via FIX protocol

Expand Down Expand Up @@ -56,6 +56,7 @@ This microservice allows sending and receiving messages via FIX protocol
The timeout is reset to the original value after a successful sending attempt.
If connection is not established within the specified timeout an error will be reported.
+ *minConnectionTimeoutOnSend* - minimum value for the sending message timeout in milliseconds. _Default value is 1000 mls._
+ *messageCacheSize* - size of in memory message cache used for fast handling recovery. Cache disabled if value is zero or negative. _Default value is 100_

### Security settings

Expand Down Expand Up @@ -264,6 +265,7 @@ spec:
testRequestDelay: 60
reconnectDelay": 5
disconnectRequestDelay: 5
messageCacheSize: 100
mangler:
rules:
- name: rule-1
Expand Down Expand Up @@ -335,6 +337,10 @@ spec:

# Changelog

## 1.8.0
* Provided configurable in-memory message cache to handle server resend request
* Updated th2 gradle plugin `0.1.1`

## 1.7.0
* Added support for th2 transport protocol
* Added configuration option for non-default book per session.
Expand Down
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id "application"
id "com.exactpro.th2.gradle.component" version "0.0.8"
id "com.exactpro.th2.gradle.component" version "0.1.1"
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
id "org.jetbrains.kotlin.kapt" version "1.8.22"
}
Expand Down Expand Up @@ -41,7 +39,7 @@ dependencies {
}
implementation "com.exactpro.th2:common-utils:2.2.3-dev"
implementation 'com.exactpro.th2:netty-bytebuf-utils:0.0.1'
implementation'com.exactpro.th2:conn-dirty-tcp-core:3.6.0-dev'
implementation'com.exactpro.th2:conn-dirty-tcp-core:3.7.0-TS-1928-+'
implementation 'com.exactpro.th2:grpc-lw-data-provider:2.3.1-dev'

implementation 'org.slf4j:slf4j-api'
Expand All @@ -55,8 +53,11 @@ dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'

testImplementation 'org.mockito:mockito-core:5.12.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5:1.8.22'
testImplementation 'org.mockito:mockito-core:5.13.0'
testImplementation 'org.mockito.kotlin:mockito-kotlin:5.4.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.0'


annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
kapt 'com.google.auto.service:auto-service:1.1.1'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
release_version=1.7.0
release_version=1.8.0
description='Dirty-TCP client'
vcs_url=https://github.com/th2-net/th2-conn-dirty-fix
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading