Giter VIP home page Giter VIP logo

qudini-reactive's Introduction

qudini-reactive

Spring WebFlux builds scalable applications, Qudini Reactive makes them production-ready.

All these libraries are preconfigured: just adding them as dependencies is enough to get started. Further fine-grained configuration is available if needed.

Installation

Maven Central

<parent>
    <groupId>com.qudini</groupId>
    <artifactId>qudini-reactive</artifactId>
    <version>${qudini-reactive.version}</version>
</parent>

Libraries:

qudini-reactive's People

Contributors

jmaister avatar mohsen0 avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qudini-reactive's Issues

name of libs

As these seem to be tied to spring and more specifically Springs reactive implementation 'io.reactor' i.e. 'Mono / Flux' should they be called 'qudini-reactor' ? as they possibly won't work with other reactive implementations. @sp00m Thoughts?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency org.jacoco:jacoco-maven-plugin to v0.8.12
  • Update dependency com.google.guava:guava to v33.1.0-jre
  • Update dependency com.newrelic.agent.java:newrelic-api to v8.11.0
  • Update dependency org.bouncycastle:bcpkix-jdk18on to v1.78.1
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-java v3
  • actions/cache v3
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-java v3
  • actions/cache v3
maven
pom.xml
  • org.springframework.boot:spring-boot-starter-parent 3.2.2
  • org.projectlombok:lombok-maven-plugin 1.18.20.0
  • org.apache.maven.plugins:maven-gpg-plugin 3.1.0
  • com.qudini:qudini-utils 0.0.5
  • com.google.guava:guava 33.0.0-jre
  • org.testcontainers:testcontainers 1.19.3
  • org.testcontainers:junit-jupiter 1.19.3
  • org.testcontainers:mysql 1.19.3
  • org.testcontainers:r2dbc 1.19.3
  • org.wiremock:wiremock-standalone 3.3.1
  • com.lmax:disruptor 3.4.4
  • com.newrelic.agent.java:newrelic-api 8.9.1
  • io.sentry:sentry 7.1.0
  • software.amazon.awssdk:sqs 2.23.19
  • software.amazon.awssdk:sts 2.23.19
  • software.amazon.awssdk:s3 2.23.19
  • software.amazon.awssdk:sns 2.23.19
  • com.qudini:qudini-gom 8.4.2
  • com.auth0:java-jwt 4.4.0
  • org.bouncycastle:bcpkix-jdk18on 1.77
  • org.jacoco:jacoco-maven-plugin 0.8.11
qudini-reactive-example/pom.xml
qudini-reactive-graphql/pom.xml
qudini-reactive-logging/pom.xml
qudini-reactive-metrics/pom.xml
qudini-reactive-security/pom.xml
qudini-reactive-sqs/pom.xml
qudini-reactive-tests/pom.xml
qudini-reactive-utils/pom.xml

  • Check this box to trigger a request for Renovate to run again on this repository

Exclude probes from auth

Most of the codebases need to exclude the probes from the auth layer when Spring Security's HTTP filter level auth is used:

.pathMatchers(HttpMethod.GET, "/liveness", "/readiness", "/metrics").permitAll()
.pathMatchers(HttpMethod.HEAD, "/liveness").permitAll()

Could be interesting to prepare such a matcher in reactive-metrics directly so that we're fully in charge of the paths.

Is there any way to use this project with Spring Cloud Gateway?

Hey, first of thank you for developing this. I have an issue, I'm trying to get contextual logging working with a gateway application. I've tried several different solutions and failed since its either resource intensive (Spring Sleuth) or it can produce misleading results (https://www.novatec-gmbh.de/en/blog/how-can-the-mdc-context-be-used-in-the-reactive-spring-applications/. ( Correlation ids showing up in logs that were not triggered by my request but rather some background process that uses WebClient))
.
Ive wired up your solution and it does seem to add a correlation_id to the reactive context but the QudiniLogEvent always has an empty context. Below is an example of a log line generated in the HttpWebHandlerAdapter. Notice theres nothing in the MDC

{"timestamp":"2021-11-02T21:43:06.058Z","level":"DEBUG","message":"[9d56bc30-2, L:/0:0:0:0:0:0:0:1:8085 - R:/0:0:0:0:0:0:0:1:51859] HTTP GET \"/services/unified/v1/authn/.well-known/webfinger?resource=iampsrtenant-robin3&tenantAlias=IAMPSRTENANT288\"","build_version":"unknown","thread":"reactor-http-nio-6","logger":"org.springframework.web.server.adapter.HttpWebHandlerAdapter","env":"unknown"}

Do you know how to get this working for a project based of spring cloud gateway?
I've gotten it to where it will output
{"correlation_id":"dca04dc2-a4f1-4242-9932-dd1971948bda","timestamp":"2021-11-03T14:06:45.714Z","level":"INFO","message":"TESTTESTTEST","build_version":"unknown","thread":"reactor-http-nio-6","logger":"com.something.gateway.filters.CorrelationFilter","env":"unknown"}

However that is when the log statement is inside Log.thenMono. Is there any way to do this throughout the whole request chain? Starting at the httphandler?

https://spring.io/projects/spring-cloud-gateway#samples

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.