© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
M B V R K

❔ A request for a Microservices Architecture Help

Hi friends,
Lets say that I'm implementing a Microservices architecture project,
I have 3 main services (
CustomerService
CustomerService
,
ProductService
ProductService
and
OrderService
OrderService
).
All these services are
ASP.NET 7 API
ASP.NET 7 API
projects, they use the
EF Core
EF Core
and
SQL Server
SQL Server
.
Each service has its own database and its own
Entities
Entities
.

The Issue:
In the
OrderService
OrderService
service, II have this
Entitiy
Entitiy
:
public class Order
{
    public int Id { get; set; }
    public DateTime OrderDate { get; set; }
    public string CustomerId { get; set; }
    public string ProductId { get; set; }
    public int Quantity { get; set; }
    public decimal Price { get; set; }
    public decimal Total { get; set; }
}
public class Order
{
    public int Id { get; set; }
    public DateTime OrderDate { get; set; }
    public string CustomerId { get; set; }
    public string ProductId { get; set; }
    public int Quantity { get; set; }
    public decimal Price { get; set; }
    public decimal Total { get; set; }
}

As you will notiice that every
Order
Order
will require
CustomerId
CustomerId
and
ProductId
ProductId
, I can handle that by getting them from the
Front-end
Front-end
.
Is this a good practice, or is I missed something?

Note: The
Order
Order
entity is in
OrderService
OrderService
and the
Customer
Customer
entity in the
CustomerService
CustomerService
, the
Product
Product
entity is in the
ProductService
ProductService
, this means they are not knowing each other.

Pease if you have any notes, suggestions and/or experience share, just share it with me.

To watch the project I'm talking about to get a general idea you can find it here (https://github.com/MbarkT3STO/MicroservicesExample)

Massive thanks in advance.
@Architecture @AspNetCore
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Architecture help
C#CC# / help
2y ago
❔ MicroServices
C#CC# / help
3y ago
How to upload C# Microservices architecture web app to gcloud?
C#CC# / help
2y ago
Help with clean architecture
C#CC# / help
5mo ago