C
C#11mo ago
M B V R K

❔ Event-Sourcing for a Duplicated Topic between Two MicroServices

@Architecture Hi friends, I'm working on a project using Microservices architecture, I have AuthService, ExpenseService and EventSourcererService, the last one is used as a separated service for Event-Sourcing for all other services. The AuthService is responsible about the User management, it contains a table/entity called User. In the ExpenseService I need some user's data to be stored in another table inside this service's DB called User, and this data should be the same as in the User of the AuthService. Oncourse I use the RabbitMQ as the asynchronous communication between my services. In the EventSourcererService every table/entity in every other services will event-sourced ( their events will stored in the EventSourcererService's DB). Now the duplicated topic here is the User in the AuthService which the original, and the User in the ExpenseService. The Issue: I'm a bit confusing about should I continue with the same flow/method ( every table in every service should have its equivalent events table in the EventSourcererService including the booth users tables in both services) OR create only the event-sources table for only the User of the AuthService OR is there another good approach ? Please I need an experience share from you and massive thanks in advance <3
3 Replies
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
M B V R K
M B V R K11mo ago
By ignoring this question, could you please just share with me your experience about this situation??
Accord
Accord11mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
✅ Opinions on Node.js + C++ vs C# for app that accesses the win32 APIHello all. I'm working on an app that can control the volume of applications through a web interface❔ What is the best OCR engine for .NET?I was searching for the best OCR engine that could convert image to text or pdfsearchable..So, what ✅ Cannot figure out resolve issuehttps://github.com/mekasu0124/Diary I have attempted to resolve the issues in my 3 axaml pages. `/✅ How to resolve CS9017 when trying passing captured arguments by primary constructor to base class?I am using C# 12. The base class: ```csharp public class DbExtension(IOptionsMonitor<AppConfig> app❔ System.BadImageFormatException: Cannot load a reference assembly for execution.Hello, I'm trying to debug this exception in my C# app. I've tried solutions from stack overflow -❔ Suppressing ASP0001: AuthorizationMiddleware is incorrectly configuredI am hosting a Blazor server app and a Web API in the same ASP.NET project, and I have set up my rou❔ Spreadsheet option for a dict / class? (visual studio)I finally set a bunch of stuff up and their working correctly, huzah! Now, i have a dictionary that❔ Constant string value for discriminator using SwashbuckleI've spent hours Googling around and testing. I have a simple table-per-hierarchy pattern going on. ❔ Entity Framework 7 model property as enum is giving conflicts when running migrationI'm trying to create a many to many "pivot" model where it haves 2 fields "GroupId" and "Subscriptio❔ Is there a way to make this neater?``` public void AddTags(string tag) { Tags?.Add(tag); Tags = Tags; }