-1

I have many microservices and each have its own DbContext (one per microservice) and model. The db separation is by Schema in the same database. I want to use MassTransit Outbox pattern in all my microservices. My questions are:

  1. Does every microservice dbcontext have to configure MassTransit Outbox tables?
  2. Do I need to use One global MassTransit schema for those tables or do i create MassTransit tables in each microservice schema?
  3. How to manage those MassTransit tables with EF core migrations - every micro service will try to create those tables again, so how to manage them?

Thanks

1 Answer 1

0
  1. Yes
  2. You can put them in each schema, and each service would have its own bus delivery service targeting that schema using that DbContext.
  3. Since each schema has its own, it would be managed per service without issues.
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, that's what I was looking for..

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.