Questions tagged [request-response]

63 questions
2
votes
1 answer

Using Inheritance in Masstransit

Let us say that I have the following structure: public class Parent { public string Id; } public class FirstChild:Parent { public string FirstName; } public class SecondChild:Parent { public string LastName; } And I have two services…
Yahya Hussein
  • 8,767
  • 15
  • 58
  • 114
2
votes
1 answer

RequestTimeoutException in Request/Response scenario

Trying to implement a request/response scenario with MassTransit.RabbitMQ version 4.0.1.1378-develop, a ASP.NET Core 2 Web application and a .NET Core 2 Console Project. Below is the code that creates bus and request client in my ASP.NET Core 2.0…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
2
votes
4 answers

receiving a response of a request which may take long time

I'm going to develop an android application which send some requests to server. These request may take long time to be processed in server-side; May be 10 seconds, 1 minute or even longer. I send my requests using HTTP methods to server (such as get…
VSB
  • 9,825
  • 16
  • 72
  • 145
1
vote
1 answer

Mass Transit - Are messages still delivered after timeout with RabbitMQ

This may be a very stupid question but I haven't been able to find a definitive answer online. I'm using the Masstransit Request/Response pattern with RabbitMQ as my message broker. I have a request to add a user to a database and a consumer running…
1
vote
0 answers

SpringBoot kafka request/reply with dynmaic topic name for @KafkaListener

i am writing a microservices application based on kafka request/reply semantic, so i got configured ReplyingKafkaTemplate as message producer and @KafkaListener with @SendTo annotations method as the service request listener. I need to create a…
1
vote
1 answer

The request was rejected because the HTTP method "OPTIONS" was not included within the whitelist [POST, GET]

I'm getting this exception on SPRING BOOT 2.2.5, but I don't know how to fix it. How can I add "OPTIONS" to the whitelist? org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the HTTP method "OPTIONS"…
doinel
  • 87
  • 1
  • 9
1
vote
3 answers

How to set up a ZeroMQ request-reply between a c# and python application

I'm trying to communicate between a c#(5.0) and a python (3.9) application via ZeroMQ. For .Net I'm using NetMQ and for python PyZMQ. I have no trouble letting two applications communicate, as long as they are in the same language c# app to c#…
Geertie
  • 237
  • 4
  • 15
1
vote
1 answer

response.redirect() with parameters

I want to redirect to a page where the path is like /users/home/:id response.redirect('/users/home') The above code will redirect to /users/home but I want to redirect it to a page like '/users/home/1' dynamically with parameters. How shall I…
loksan
  • 157
  • 3
  • 17
1
vote
1 answer

Wait for Mass Transit saga to finish

I'm trying to create a saga that returns some result to the caller, just like the Request/Response pattern. I'm able to start the saga if I call the Send method, but not by submitting a Request. So, the saga logic runs fine, but it doesn't return…
EduardoCMB
  • 392
  • 2
  • 17
1
vote
1 answer

NServiceBus 6 callback client never gets a callback when the request handler fails

Using NServiceBus 6's Callback feature I have found no way to alert the client that the request handler failed. The request handler will go through all the recoverability steps, and eventually put the message into the error queue. Meanwhile, the…
mikesigs
  • 10,491
  • 3
  • 33
  • 40
1
vote
1 answer

request canceled - what is it and why?

I'm trying to make an ajax request to some logging service using jQuery, the request is initiated by clicking a link on the page, but sometimes I see in dev tools that the request gets the status "canceled". Is it because of a race condition?…
0
votes
0 answers

Snowflake Integration with ChatGPT - Response issue while working with multiple rows in a table

ASK: I want to see the president of each country. It is working if I am having single row in table but when I am having multiple rows or more than 1 row then it failing with below shared error. SQL query C_BIRTH_COUNTRY is different country…
0
votes
0 answers

What are some good use cases for the Asynchronous Request-Response pattern?

I've been trying to read up on the Asynchronous Request-Response pattern, and just wanted to hear some thoughts on when we should choose this pattern over some other communication pattern (eg. synchronous request-response, event-driven, etc.). Let…
Ryn
  • 441
  • 2
  • 10
0
votes
1 answer

How to create ServiceBusSender dynamically when using request-reply communication model via the ReplyTo message property in Azure Service Bus?

After having looked into a message session based request-reply pattern, I decided to implement a request-reply model that does NOT use message sessions, but solely relies on the ReplyTo and CorrelationId message properties as described here: Simple…
0
votes
1 answer

How to handle ServiceBusSessionReceiver and message session lifetimes when using the request-reply communication model and dependency injection?

I am writing an ACME worker service that uses an asynchronous request-reply communication model. In Azure Service Bus I have a queue acme-requests for all inbound requests to the ACME service. I also have a queue acme-replies for all inbound replies…