Return immediately and then do work after the fact? #2009
Unanswered
tobymurray
asked this question in
Questions
Replies: 2 comments 2 replies
-
Have you looked into something like RabbitMQ or Kafka? It sounds like there can be a separation of concerns. The first would be adding something to your Queue, and returning OK if it was successfully added. The second would be actually processing through that Queue, where one consumer can be to find emails that need to be sent, for example. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My goal is to send an email containing the body of a request. I want to return a response immediately, then send the email out of band of the request/response flow.
Is there an idiomatic way to return first then do work after the fact (accessing the request body, in particular)?
Beta Was this translation helpful? Give feedback.
All reactions