0

I have a question I'm curious about. Let's say we are developing a microservice social media application (I chose this topic for practical purposes :)). I'm using the inbox-outbox pattern to ensure data consistency. When using the outbox pattern, I save the PostOutbox entity within the PostContext, and then I check this database with a worker service and a job. What I'm curious about is: Should I define a common worker service for handling this process for both posts and comments (i.e., sending events), or should I define separate worker services for each? Of course, defining them separately is more manageable, but I wonder how this is used in a professional context. Thank you!

enter image description here

1 Answer 1

0

I think this has the same design trade off as discussed here for single queue vs multiple queue When to use one queue vs multiple?.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.