Questions tagged [request-response]

48 questions
9
votes
2 answers

What's the sequence of middleware execution in django when error occurs in process_request?

I am looking into django middleware codebase. I looked into following diagram So, the diagram is quite clear. But I have some questions What happens when exception comes in process_request() middleware ? How is it handled ? Will the…
4
votes
2 answers

Volley's StringRequest is not returning JSONObject

The code below is going to implement a simple online login system. The php script path is defined in constant authenticationURL (line 34 in MainActivity.java). It was tested with Postman and works as it should. Also the loginButton and its onClick()…
4
votes
2 answers

Charles Proxy not working for Android version above 7.0?

I am using Charles for intercepting request and response from a long time,but When I tried google pixel targeting Android Oreo, It keep giving me hand-shake exception. I was aware their certain changes has been done in Naught about network…
AndroidGeek
  • 55
  • 1
  • 7
4
votes
1 answer

How to do request-response pattern with WebSockets

I am using Socket.io, and I am wondering if there is a good way to use the request / response pattern. Is the best way to do this to use a UUID for each request, and then only handle data from a response that contains that UUID? That's perhaps not…
Alexander Mills
  • 1
  • 80
  • 344
  • 642
3
votes
2 answers

Is there a GCP equivalent to AWS SQS?

Im curious to understand the implementation of GCP's PubSub. Although Pubsub seems to point to follow a Publish-Subscribe design pattern, it seems more close to AWS's SQS (queue) than AWS SNS (that use publish-subscribe model). Why is think this is,…
3
votes
1 answer

Using topic with request/response in masstransit

I'm using Masstransit dotnet core v6.3.1 with RabbitMQ v3. My case is sending request from api gateway to other services. Services consume by topics and Gateway using different topics per request. I'm trying to use request/response with masstransit.…
3
votes
1 answer

Request based vs Event based architecture

Q1 I know the fundamental different between event based vs request based/driven architecture. Question is if the Request-based always done in synchronously while the Event-based is always done in asynchronously ? Q2 Also, in API world…
2
votes
1 answer

How to implement a request-response pattern on Google Cloud PubSub?

I have multiple clients A (main application) and multiple clients B (payments service). If I publish a message from client A that will be processed and answered on client B (publishing an answer in another topic), how to capture this answer on…
2
votes
1 answer

Request, Response pattern within Haskell

I'm trying to figure out a good way to implement a request response pattern, where a monad can request the monad runner to perform an action and return a value back to the monad. The reason I want to do this is because I have a bunch of tasks to…
redfish64
  • 551
  • 3
  • 10
2
votes
0 answers

JMS with CompletableFuture

I'm stuck when using Java's CompletableFuture with JMS (ActiveMQ). When I send a request for which I expect a reply, I create a CompletableFuture and put that in a Map with the correlation ID as key. This works perfectly as long as I get a reply.…
Aaron Digulla
  • 297,790
  • 101
  • 558
  • 777
2
votes
2 answers

Handle TokenMismatchException for ajax request

I'm sending my requests to the server using ajax and somehow at times, I may get TokenMismatchException on the server. Now, I want to handle this both on the backend as well as frontend. For this, I used a reference from this StackOverflow…
Birendra Gurung
  • 1,808
  • 1
  • 11
  • 25
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
  • 57
  • 5
1
vote
2 answers

Implementing Request Response in Apache Kafka java

Please find the use case we need to implement. First, we need to invoke a Kafka producer a message as a rest service, they will process and give back the response in another topic. For us, It is a request-reply topic we need to reply back for the…
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
  • 107
  • 10
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
  • 387
  • 1
  • 10
1
2 3 4