Questions tagged [smallrye]

SmallRye is community providing APIs and implementations tailored for Cloud development mostly, but not limited, to the specifications. The implemented APIs are tailored for Cloud Native development and container deployment.

Here you can find the main, Eclipse Microprofile, implemented specifications and their current status / version.

SmallRye provides many other community APIs such as [mutiny], which is another (yes) reactive API for the Java language.

160 questions
11
votes
1 answer

Generate OpenAPI descriptions from JavaDoc

I have an application which provides an API with JAX-RS (Java API for RESTful Web Services / JSR-311). For documentation purposes I provide an URL according to the OpenAPI-Specification, which is generated by Eclipse MicroProfile OpenAPI. Everything…
Tobias Liefke
  • 8,637
  • 2
  • 41
  • 58
7
votes
3 answers

Using Apache Camel/Smallrye/reactive streams - how can I connect a "publisher" to a "subscriber" across JVMs?

Below is my attempt at a Apache Camel reactive streams solution to connect a publisher to a subscriber (code for camel routes is shown below) across JVM's To enable the communication to span JVMs, it seems a "broker" server is required. Therefore,…
sairn
  • 461
  • 3
  • 24
  • 58
5
votes
1 answer

Quarkus verifying JWTs from multiple sources

Is there a way to allow JWTs from multiple sources? I have a REST API that I only allow access to via Bearer Tokens authentication, and I really only need to verify these tokens, so I don't really need all the additions that OIDC brings. Let's say I…
oole
  • 342
  • 3
  • 13
5
votes
3 answers

How to set a environment variable for a quarkus property with hyphen?

When setting environment variables for properties with hyphens, such as: quarkus.datasource.db-kind=postgresql I would expect it to be set as: export QUARKUS_DATASOURCE_DB_KIND=postgresql However, that results in an the following…
Julio Faerman
  • 13,228
  • 9
  • 57
  • 75
5
votes
1 answer

Is it possible to use quarkus security with quarkus-smallrye-graphql?

I am trying to use the quarkus-smallrye-graphql extension. And it seems like I cannot use any of the security annotations such as @Authenticated in a class annotated with @GraphQLApi. I previously tried to use the smallrye-graphql project directly…
4
votes
1 answer

How to rewrite Uni> to Multi without a list? Reactive Programming

As i am working in a Project where i want to rewrite the Uni to Multi for a method "findall" to get all the mongodb Document from a collection. I tried to rewrite but not able to find a solution original: public Uni> findAll(List
4
votes
1 answer

Quarkus - Responding with status based on kafka write ack and nack

I have an endpoint which pushes data to kafka. Now, I want to respond to the call with the appropiriate status code 2xx or 5xx in case of kafka write success or failure respectively. The code snippet is @Path("/prices") public class PriceResource…
4
votes
1 answer

Vertx is not available in Quarkus vertx munity web client extesions

I tried to test the reactive web client provided by vertx munity web client. I followed the official guide Quarkus - Getting Started with Reactive. And added the following in dependencies.
Hantsy
  • 8,006
  • 7
  • 64
  • 109
4
votes
1 answer

Quarkus and Firebase Authentication

I'm developing a new REST Service using Quarkus (1.3.2.Final) and I'm trying to integrate Firebase Authentication with Smallrye-Jwt but it failed. My first try was to point publickey.location to Google's URL and it failed because there are two keys…
Renato Silva
  • 108
  • 7
3
votes
1 answer

Dynamic Topic Name / Quarkus SmallRye Reactive Messaging Kafka

I want to use this extension: [Quarkus Smallrye Reactive Messaging Kafka] But in my application the name of the topics is not known in advance, it is specified according to the message received from the user at runtime. How can I specify the topic…
3
votes
2 answers

Can we get parallel processing of each of Multi pipeline steps?

Lets say we have: a list of URLs, that is a source for our Multi as a first step we grab HTML of this page using HTTP client call then we try to find some specific tag and grab its content then we store things we found into database Now we have a…
David Marko
  • 2,477
  • 3
  • 27
  • 58
3
votes
3 answers

How do i sort a Multi in smallrye mutiny

Other reactive libraries like project reactor offer sort methods for Publishers but there is no such method in mutiny. Their documentation doesn't even talk about it. https://smallrye.io/smallrye-mutiny Right now i'm achieving the said…
3
votes
0 answers

Quarkus HealthCheck

Here is my database healthcheck : @Readiness @ApplicationScoped @Slf4j public class DatabaseConnectionHealthCheck implements HealthCheck { @Inject PgPool pgPool; @Override public HealthCheckResponse call() { final…
bdeweer
  • 135
  • 1
  • 14
3
votes
1 answer

What is the switchIfEmpty alternative in Smallrye Mutiny

In RxJava 2 and Reactor there is a switchIfEmptylike method to switch to new flow if there is no elements in current flow. But when I began to use Minuty, I can not find an alternative when I convert my Quarkus sample to use the Reactive…
Hantsy
  • 8,006
  • 7
  • 64
  • 109
2
votes
1 answer

How to connect to Azure ServiceBus in Quarkus

I want to connect to ServiceBus subscription from Quarkus. I found this article, which suggests to use ServiceBusJmsConnectionFactory and I am trying to make it work with smallrye So far I tried: import…
JoeBloggs
  • 89
  • 7
1
2 3
10 11