Questions tagged [request-response]
63 questions
18
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,…

user1384205
- 1,231
- 3
- 20
- 39
10
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…

bet
- 962
- 1
- 9
- 22
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…

Mangu Singh Rajpurohit
- 10,806
- 4
- 68
- 97
5
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
- 90,741
- 139
- 482
- 817
4
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…

Pedro Barros
- 1,326
- 1
- 12
- 19
4
votes
2 answers
Difference between DTO and Response Object?
What is the difference between a Response Object and DTO in software architecture? Say I want to get a list of Products in a catalog.
If ProductDTO is this, how is a Product Response class different? Is a Product Response typically just a wrapper…
user12093268
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()…

Mr. Smith
- 41
- 5
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…
user9614814
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.…

ofaruksahin
- 31
- 1
- 2
2
votes
2 answers
Sending request reponse message on Artemis using C#
I am trying to implement a request response pattern in C# with the ArtemisNetClient, but having a bit of trouble finding out how to do so in a more generic way in a real solution.
I was able to do something like this in two console applications…

Padawan
- 35
- 7
2
votes
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…

shuaib
- 71
- 6
2
votes
2 answers
Net Core: Create Response Class for Each API Action?
Our software architect is mandating all API Actions have their own Response Class, since every Response can be slightly difference. So we basically wrap the Product DTO in a Base Response class, and slightly customize if needed. Is this good…
user12093268
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
- 565
- 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
- 321,842
- 108
- 597
- 820
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
- 2,168
- 2
- 16
- 29