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
3
votes
1answer
251 views

How to prevent configuration drift in Microservices

When I started working everyone was scared of deployments. Software was deployed infrequently and people were afraid services and machines had been manually “patched” since the last release. I fixed ...
0
votes
2answers
26 views

How to link the response of a rest call with my request?

I have a service that makes a request for data from another, and it can be a list like so: POST /getFavoriteNumber { "persons": [ { "name": "joe", ...
3
votes
3answers
256 views

Inner join between separate databases

Assume there is a large corporation with multiple SW systems that all use the same CRM system via a REST API. All systems have their own databases as does the CRM system. Now, system A only holds ...
-4
votes
1answer
50 views

A request's round trip time monitoring at microservice production best tools and practices?

I've a microservice's system at production which provide an API to the outer world. Along with each service monitoring via monitoring tool ( Prometheus, zabbix, etc.) of course it's highly desirable ...
3
votes
1answer
178 views

Where should the circuit breaker go?

I'm developing a new REST API and I've seen some projects place the circuit breaker in the Controller. I used to place it in the DAO. First difference I can say is that placing it in the DAO is that ...
1
vote
0answers
315 views

Migration from monolithic Spring MVC, JSP, JQuery, Bootstrap frontend to micro-frontend

We are trying to migrate from a monolithic application to a micro-services one. On the backend we did a lot of work and now we start splitting it into REST micro-services with a well defined JSON API. ...
1
vote
1answer
186 views

How would a Search API microservice fit in an event driven architecture?

I apologize if this sounds really strange. I am very new to System Design and have just been reading up on Event driven systems. To gain better understanding and to perfect my thought process I ...
0
votes
1answer
157 views

Event sourcing: Update local data before posting an event?

We are introducing events to our system (I would hesitate to call it 'event sourcing', but we have started down this road). To do this we are still maintaining the same HTTP public 'CRUD' API's, but ...
1
vote
3answers
240 views

How to handle database connection drops?

I'm currently writing some microservices, some of them communicating using RabbitMQ, RedisDB, Kafka and other communication streams. When any of those connections drop, I can't know for sure if a ...
0
votes
1answer
40 views

How to deal with second hand reference data in event driven architectures?

What is the best way of dealing with secondary reference data in event driven architectures? For example, if you have an event from an "Employee" domain that includes some reference data ...
7
votes
3answers
2k views

What are the benefits of multiple projects over namespaces in a solution?

I have been tasked to set up a guide for a microservice solution structure and find myself reflecting on why exactly I do things the way I do them. I am struggling to find an answer to the question ...
2
votes
1answer
177 views

Event Sourcing/CQRS for Self-Related Entities

I'm building a platform that has an entity named content. There's a clear boundary around what defines content except that it can have relationships with other content entities. Up until now, there's ...
1
vote
1answer
149 views

How to handle authentication & authorization inside microservices

Example Application I will try to explain my problem by using a familiar application. Lets'say I'm building a Discord / Slack / Microsoft Teams clone; and for simplicity’s sake, it will contain 2 ...
-2
votes
1answer
71 views

Unexpected shutdown before a saga completion

Suppose we have some microservices and a saga will run to do a transaction in 6 microservices. What if the whole system dies(unexpected shutdown), on middle of saga process in the step number 4?(...
2
votes
1answer
453 views

Should a large number of system tests be part of the build?

I believe extensive automated unit tests should be part of the build. However the testing pyramid suggests that there should be a much smaller number of system tests. Should an automatic build include ...
5
votes
2answers
365 views

Monolith to microservices - Staging / UAT environments

In our organization we're looking to adopt a service oriented architecture where new requirements (that are natural bounded contexts) are being built as separate services that integrate into the main ...
3
votes
2answers
209 views

How to ensure data consistency between 2 microservices while both having write permissions

I'm currently building my first ever microservice using NodeJS, but I stumbled upon a problem. TL;DR ~ How to ensure data consistency between 2 microservices while both having write permissions Setup ...
4
votes
1answer
255 views

How far to go when decoupling Microservices by use of Integration Events (Messages)?

I am reading the architecture guide from the .net core project. They state: The integration events can be defined at the application level of each microservice, so they are decoupled from other ...
-2
votes
2answers
89 views

Inter-microservice communication with gRPC without hard-coding service endpoints

I'm building a microservices architecture that requires microservices to communicate with each other. Searching Google has led me to believe that gRPC is the preferred method for achieving this. ...
0
votes
0answers
36 views

Experiences with coarse grained and fine grained message designs in an ECST pattern

I am currently facing a dilemma in the design of a message oriented distributed system following an Event Carried State Transfer pattern. This is essentially a "near real time ETL" used to ...
2
votes
3answers
897 views

Sharing user related data in microservices

I'm having a problem choosing the right approach to sharing some user related data throughout my microservices-based application. Imagine the following scenario: Users microservice handles creation of ...
-2
votes
2answers
148 views

Testable architecture of micro-services

Into: There are mutliple ways to test code: unit tests /e2e / manual testing /.. I'm developing a project that it's implementation details changes very quickly (and sometimes the core functions as ...
2
votes
2answers
353 views

Entity delete validation in a microservice environment

In a microservice environment there are two services: Service A and Service B. Service A manages an entity called x which has one to many relationship with service B's entity called y When a network ...
13
votes
2answers
424 views

When bounded contexts and "microservices" collide. A distributed systems dilemma in diagram form

You can't please everyone. Some people want a lot of context and background on sites like this. Others do not. If you don't want the background, skip the first three paragraphs. I am a software ...
0
votes
2answers
965 views

Can a microservice contain multiple applications?

I am having trouble understanding if a microservice can contain multiple applications. Looking at Microsoft's example, the Ordering Microservice contains 2 applications. The API Background tasks ...
1
vote
2answers
109 views

In Event Driven Architecture, do Microservices only communicate with Events/Commands?

Still getting to grips with EDA. Suppose in your system you have an Order Service, which first needs to check if the customer's account has enough credit from the Account Service. There are multiple ...
0
votes
1answer
68 views

Reading from SQS using AWS Lambda vs WebApp background worker

I'm writing a microservice (in .netcore) that will handle some requests using WebAPI, but also it needs to react to some external events. I see 2 possibilities how to solve it (on a very high level): ...
0
votes
1answer
113 views

Microservices Conditional API Call Design

I always think about this scenario where we need to perform a task conditionally and the task requires calling another microservice. What I am not able to understand is which microservice's ...
-3
votes
1answer
89 views

How to test dependencies between microservices?

We have two microservices A and B that are developed inhouse. A provides an API that B consumes. Let's assume that B has some specific integration tests that ensure that B is compatible with A. We ...
0
votes
1answer
60 views

Performance problems with microservices that have high data coupling

I'm working on a relatively large system, that is about online transportation reservation. The system is decomposed into some services, that are interacting via REST interface with each other and the ...
1
vote
3answers
402 views

Microservice integration with an external legacy system

We are decomposing a monolithic legacy system into microservices. As we do so, we can't completely remove reliance on some of the data in the legacy system that's required for each microservice. ...
3
votes
1answer
976 views

Design Error Codes Flow In Microservice

I'm designing an application in a micro-service architecture and I have some questions regarding error codes. Found some information about it (1,2) - but more focused on the responsibility of the ...
0
votes
1answer
222 views

What is a not well-defined interface?

I keep reading about "well defined interfaces", as here, here or here, specially when talking about microservices. What's an example of the opposite, an interface that is not well-defined?
0
votes
1answer
42 views

Move monolith to Event Streaming in one step or multiple steps?

I have been the sole developer on a project for the past eight years. Right now it's one big monolith, but at this point it's really three separate apps, and those really need to be broken down as ...
0
votes
0answers
30 views

What's the proper way to define response model for synchronization purpose when using microservices

I'm using a microservice architecture. when something went in one microservice I want to catch it in another microservice. To say briefly I have synchronization. But there I have one problem, I have a ...
0
votes
1answer
64 views

Question about the best way to architect a small webapp

So I'm trying to create a simple website where I run a computationally intensive task on the backend based on input submitted by a form. For reference: my goal is not too dissimilar from something ...
3
votes
3answers
350 views

How does a CDN get "data" when there's hundreds of terabytes stored in data centers?

I am still trying to wrap my head around CDN's in a real world scenario. Suppose I am building a Netflix clone. I have about 1,000 terabytes of video content stored in an S3 bucket. Since Netflix ...
0
votes
0answers
109 views

How to handle various types of custom logic in multi-tenancy architecture

In a microservice based multi-tenant web application, there are some cases of tenant specific logic where I am unclear about the proper strategy to handle them. Thank you for pointers. These two ...
-1
votes
1answer
66 views

How The Process Context Can Be Leveraged In Modular Monolith

I'm currently on the research if my current monolith architecture can be improved by moving to micro-services. From what I saw, there are a lot of good things about micro-services but there is a low ...
32
votes
2answers
7k views

Should microservices be independent?

I have the following application: This application receives an API call (HTTP), does some internal work that usually includes reading or writing to a database that has 5 different tables, generates ...
0
votes
1answer
46 views

How to abstract the communication protocol used to communicate between different microservices?

I would like to implement a microservice which can support both REST and SOAP, and will use the protocol based on the client preference (or what the client is already using). I have been thinking of ...
0
votes
1answer
142 views

How to design a flexible payload for a microservice?

I am currently trying to implement a Generic solution for common processes, and this solution will require supporting different payloads for each specific usage. I am not aware of a way to define a ...
1
vote
3answers
158 views

Is shared message types a design smell?

I recently encountered a microservice architecture with 50+ services communicating with messaging using publish/subscribe on a topic. I have previously worked with event based systems where each ...
-3
votes
1answer
200 views

Springboot (Java) - Is mandatory for BDD the use of Cucumber?

I was wondering if its a requirement to consider BDD the use of Cucumber framework or other framework of test abstraction. Because I was playing around with @SpringbootTest and TestContainers(both ...
-1
votes
1answer
103 views

Design of a single microservice, size limit?

I've been struggling for a while of what would be the "recommended" approach for a microservice itself. There are quite of top architecture designs that are the holy sacred for a lot of craftsman ...
3
votes
2answers
604 views

In microservice architecture, when to prefer synchronous over asynchronous communication and vice versa?

In our microservice architecture, this is how requests flow. Service Layer: Requests hit this layer from public LB. Also, response composition is performed here. API Gateway: The core job of API ...
0
votes
1answer
189 views

Is this an anti-pattern to have a service have both APIs and listening to events?

I am planning to make a service which will have simple REST APIs and will have a database in backend. I also wanted to add a logic to listen to notifications emitted by other service and there is some ...
1
vote
2answers
143 views

Comparing microservice to MINIX microkernel

I'm trying to understand what microservices are and MINIX's microkernel architecture seems to be a good analog. (I'm a systems engineer.) In my understanding: Microservices are like user space ...
-3
votes
2answers
100 views

How large should messages in an event queue be? [closed]

I am working on a system where I am planning to send a large amount of data in a message to an event queue. About 150 or so small objects. I know the technology should be able to handle this, but is ...
0
votes
1answer
100 views

Maintaining Objects Across API Deployment Instances

I am working on a web application as a hobby and trying to learn some concepts related to cloud development and distributed applications. I am currently targeting an AWS EC2 instance as a deployment ...

1
3 4
5
6 7
18