Questions tagged [microservices]

Microservices are small, independent processes that communicate with each other to form complex applications which utilize language-agnostic APIs. These services are small building blocks, highly decoupled and focused on doing a small task, facilitating a modular approach to system-building.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

How should you structure the front-end/client to interact with a web app microservice?

I've been grappling with this for a while and figured I would post here to get input. I am a full stack engineer. I work on both front end and back end apps, where sometimes I have to create new ...
2
votes
3answers
92 views

How to implement ownership of microservices while maintaining business agility?

I am struggling to reconcile some good recommendations, relating to the microservice architecture and Agile and DevOps, that are mutually exclusive in my mind. On one side we have the recommendation ...
0
votes
1answer
41 views

Should Configurations Be Split To Different Microservices?

As part of a microservice-based system design, I'm struggling to decide where system configurations should reside in terms of domain ownership. For example, let's assume I'm designing a "store ...
-2
votes
1answer
43 views

Securing http communication between backend services [closed]

What is a good way to secure http communication between two backend services which are not hosted on the same network? One way might be to have a shared secret in both services but I feel like that is ...
2
votes
1answer
200 views

Which git workflow for micro-services and testing

I would like to know what best practices exists out there with regard to micro services, CI/CD, testing and Git workflow, especially the way of working given the constraints that a) nothing should ...
0
votes
4answers
153 views

Should queries in CQRS be designed based on external demand?

I'm working in a microservice application which has some level of coupling between the microservices (some of them talk with each other via rest api - I know it is bad, but it is what it is; also I ...
0
votes
1answer
87 views

Should micro services follow HTTP verbs precisely?

I'm concerned with the practices on my team regarding following REST and HTTP verbs precisely. For example, when we hit a get endpoint for a resource/resources that doesn't exist, we return a 404. ...
0
votes
1answer
77 views

Distributing responsibilities in a micro service in an Object Oriented manner for a 3rd party integration?

I'm trying to figure out how to structure a 3rd party integration microservice, and how to name the classes accordingly. If you had a classic shopping cart application which processed payments for ...
1
vote
1answer
76 views

Handling Errors in a Microservice architecture and asynchronous message queue

When inter-communicating through http requests between Microservices it is quite easy to reply with error messages to users, you can just catch the error of a different Service and forward it to the ...
0
votes
1answer
44 views

DDD and bounded contexts: can a context be mapped in multiple microservices?

Let suppose that i have two bounded contexts: A and B. In books i'm reading authors will only write "Context A maps into micoservice A'". Now i'm working on a project (university assignment) ...
0
votes
0answers
88 views

Microservice code reuse strategy for static classes

Hope this is the right place to post an opinion-based question like this. I'm in the process of converting an aging API monolith to a set of .NET 5/C#-based microservices and working on the code reuse ...
1
vote
3answers
1k views

Background job in microservices

I have a basic java Dropwizard service within cluster of microservices. It manages user resources with restful api styles. Let's call it user-app Then there is a new operation / api endpoint that ...
1
vote
2answers
38 views

Compare diff between similar objects stored in two different databases and delete the missing records from the later

We have a legacy system (app 1) that has millions of records of an object Project. It has ProjectId and OrganizationId columns along with other properties. A recently added service (app 2) gets the ...
1
vote
3answers
178 views

Using IP address vs domain name for microservice communication

We have microservices in separate machines that currently use IP addresses in their configuration to communicate via REST APIs. There are also domain names defined for these machines. Is it a good ...
0
votes
1answer
75 views

Azure Event Grid API layer beneath a HTTP API layer

I am part of a project/team that is building a new web app in Azure for the first time, having previously built and developed a traditional three tier ASP.NET web app over a number of years. We have ...
0
votes
0answers
47 views

How to get analytical information from a microservices system?

In an event-driven microservice architecture, imagine we have three services: Customer service Order service Item service Each service raises an event with data when something happens and stores ...
3
votes
5answers
818 views

How to resolve cyclic dependencies in Event-driven systems?

Consider two services (bounded contexts by DDD): Sales Billing Sales is responsible for creating orders and Billing for handling payments. Sales tracks orders and Billing holds payments: Sales ...
0
votes
2answers
102 views

What is the difference between business capability and subdomain Decomposition in microservices?

I want to understand the difference between business capability and subdomain Decomposition for mircorservices. subdomain The subdomain decomposition corresponds to Domain-Driven Design (DDD) ...
0
votes
1answer
65 views

How to deal with master data in a microservice environment

Hey Software Engineers Currently we basically have a what I would call "modular monolith". A diagram would likely look something like this: What we want to do in the future is being able to ...
-2
votes
1answer
60 views

Backend microservice design

I'm currently designing a new online platform where the frontend will be Angular using Angular Universal and the backend will be a sort of Node.js clustered microservices. The question itself is what ...
0
votes
2answers
115 views

What is the definition of a `service` in microservice/Service-oriented architecture?

I looking for the scientific agreed upon definition of 'service' in Microservice/Service-oriented architecture. I found a the definition It logically represents a repeatable business activity with a ...
1
vote
1answer
140 views

Event sourcing access by reference

In an event sourcing architecture, what is the typical pattern for passing information about related objects (aggregates)? For example, in a order processing system, should OrderCreated event (...
2
votes
1answer
172 views

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user ...
1
vote
1answer
100 views

Data validation between microservices

Consider a scenario (in .Net Core world), where a microservice A collects data from external sources and sends this data asynchronously (RabbitMQ) to microservice B (the reporting system) where this ...
-1
votes
0answers
35 views

Proper technologies to create a horizontably scalable index search

I am sorry for the newbie question (I have experience with software engineering but not with microservices for horizontal scalable solutions). I'm trying to figure out the best architecture / set of ...
1
vote
2answers
145 views

How to manage primary keys in CQRS

I'm building a backend following the CQRS pattern and I don't know how to manage properly the primary keys (surrogate keys) between the command and query databases. For example: I have a model with ...
0
votes
0answers
52 views

Dealing with third party api rate limit when using multiple services

I have 1 api key that has a rate limit 1000req/1min. I would like to somehow use 50% of that limit in service 1 and 50% of that limit in service 2. Let's say they're just 2 separate processes using ...
0
votes
2answers
76 views

Dev/prod parity and microservices

According to the 12-factor-app dev/prod parity principle, the developers' local environments and production should be similar. For developers working on a system with a complex microservice-based ...
0
votes
2answers
86 views

Scaled services and order of events sent as messages (using a broker)

How would you go about making sure that "events" sent as messages to any sort of broker (Kafka, RabbitMQ etc) from multiple instances of the same service (load balanced) are actually added ...
0
votes
1answer
53 views

What is the best approach when working in a communication between Microservices using Azure Functions?

I'm working in a situation where I have 2 different projects (kind of microservices, but they are still messed up in terms of the tables that each project can access - same domain). But so far, they ...
0
votes
0answers
51 views

Microservices - responding to frontend

I have seen multiple videos on microservices from guys building netflix/instagram and so on, and many and data consistency between microservices, but one thing that I can't really grasp yet, is as ...
0
votes
1answer
85 views

Passing an OAuth Token between services with Zero Trust and audience checks

Let's say, we're using an OAuth / OpenID Connect (OIDC) flow (in a Zero-Trust situation) to secure two APIs: ServiceA and ServiceB. To implement some of the functionality of ServiceA, it depends on ...
3
votes
1answer
514 views

Microservices and Modular based front end

I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular JS, Angular 2 and others. I wanted to know how we can organize our front end code ...
1
vote
0answers
71 views

How to do "initial sync" of data for new microservice that depends on data from another microservice?

Hypothetical scenario: Let's say I have a Customer service. It has 1 million customers in its database. I then create a new service that depends on a specific projection of the customer entity. I want ...
0
votes
1answer
170 views

How can users be notified of changes during collaborative editing in a system like Google Docs?

"Designing Google Docs" is a popular system design interview question, and there are plenty of articles on it on the web. However, those mostly touch on merging changes, but don't explain ...
1
vote
1answer
79 views

What are the approches to to fetch common data btween microservices without replication?

One of the alternatives for managing common data between microservices is replicating the data needed by multiple services in their own databases but there are large data sets that we do not want to ...
0
votes
1answer
49 views

Multiple Lambdas, one database?

Having read through various microservices literature, I've seen a common recommendation that a microservice should generally be fairly cohesive, owning its own data repository, and serving as the ...
0
votes
0answers
19 views

Is publishing to the same event store stream from multiple places an anti pattern in a distributed transaction?

Below is a little context to the problem I'm trying to solve. There are two separate microservices with separate frontends , APIs and databases. Customer Microservice - Manages customers Orders ...
7
votes
1answer
4k views

Handle localization in microservices architecture

I'm developing a multi culture application with different microservices, The microservices communicate with each others with integrations event, so when a new record is inserted the owner of the data ...
0
votes
1answer
52 views

SOA communication RESTful API and Message BUS, is it common to have both?

I understand their own characteristics but a lot of articles focus on comparing the two methods but never talked about they serve different purposes within SOA. Eg. Example of ticket system and ...
8
votes
3answers
1k views

How to update a NoSQL database and publish event atomically in an event-driven microservices architecture?

In an event-driven microservices architecture, services typically need to update their domain state and publish an integration event to a service bus at the same time (Either both operations complete, ...
0
votes
1answer
38 views

Replacing ASP.Net 4 app with microservices and React

Backstory: My new employer has Dynamics CRM on-prem and it is used by all office staff and other colleagues that are consultants. All other employees are a working force out on various construction ...
8
votes
10answers
577 views

Boneheaded exceptions should not be caught. Then how to provide fault tolerance and reliability?

I've always been taught that fatal exceptions (indicating problems that cannot be solved programmaticaly) and boneheaded exceptions (resulting from bugs in my code) should not be caught, should not be ...
7
votes
3answers
348 views

Event Driven Architecture - Best Practice

I am trying to understand the best practice around the event-driven architectures. say I have 2 services order service and inventory service. An user wants to order product and sends a request to ...
2
votes
3answers
2k views

Message Broker in Client-Server-Applications

I'm currently planning an architecture for a system that should consist of multiple microservices. We definitely want to make use of a message broker (probably RabbitMQ). A simplified diagram of my ...
-2
votes
1answer
140 views

Modular monolith vs microservices for hybrid multi-tenancy

TLDR; I'm architecting an hybrid multi-tenant app that needs to handle customizations request from customers (tenants), I'm trying to decide between modular monolith and microservices pattern, Which ...
0
votes
0answers
37 views

Design : How to divide the responsibility in micro services

I have two micro services built using spring boot, One micro service is: "payment" Which handles actions related to payments. Like creating a payment link. Getting the latest status of ...
4
votes
0answers
165 views

Can an api gateway handle websockets requests besides regular http requests at the same time?

I am working on social platform with a distributed architecture. The platform should offer a chat module, but since the most efficient way to implement a chat is using websockets. I am not sure what ...
1
vote
2answers
211 views

Chain of responsibility or simple dependency injection for Querying API

I am working on refactoring a project code that is wired up in a tangled way. It was started with decent dependency injection and over time with all custom requirements it looks it got tangled up. ...
0
votes
0answers
43 views

Two microservices communicating each other, causing cycle dependencies, is this ok? [duplicate]

Is it okay that microservices may communicate to each other, causing cycle dependencies? As I understand from this post two microservices can be loosely coupled (each of them has interface, and can be ...

1
2 3 4 5
18