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
17 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 ...
0
votes
0answers
23 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
42 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
427 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 ...
3
votes
1answer
71 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
141 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
0answers
88 views

Microservices - Are we just wading into Disaster?

I work for a small company (6 Developers total) building a NodeJS/React based WebApp that will eventually be available "off the shelf". Currently though we're working on a sort of SaaS basis;...
2
votes
1answer
115 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
66 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
20 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 ...
0
votes
3answers
78 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
54 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 ...
-3
votes
0answers
33 views

Cloud user registration

I developed an app that stores user-generated content in a local sql-lite database. I would now provide the feature to the user to sync automagically its database with a cloud service. Ideally, I ...
2
votes
2answers
90 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 ...
7
votes
1answer
216 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
106 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
79 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
24 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
74 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
67 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
53 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
200 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
86 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
98 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
36 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
29 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
54 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
277 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
35 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 ...
-2
votes
1answer
53 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 ...
31
votes
2answers
6k 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
40 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
53 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
141 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 ...
0
votes
0answers
88 views

Eureka cluster for service registry with only one IP address

I want to use the Eureka cluster with service discovery. As it said in the documentation, Eureka's nodes can share their state with other nodes. If one Eureka node fails, others still have all ...
-4
votes
1answer
60 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 ...
-2
votes
1answer
60 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 ...
2
votes
1answer
86 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
101 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
63 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
92 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
54 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 ...
0
votes
1answer
70 views

Email via a Microservice

We currently have a monolithic code base which we are in the process of extracting some micro-services where it's obvious to do so. One thing that stands out is our email delivery. We have numerous ...
-2
votes
2answers
132 views

Microservices with External Integration

I am creating a microservice based application which has to interact with Github through its API. Some of the microservices are Projects, Tasks, etc. My question is: should I have a microservice ...
0
votes
1answer
54 views

How to handle input validation in microservices for duplicated data

What would be the best practice of handling input validation in microservice? Especially for the duplicated data? To give context, say I have 3 services: User Typical user service with User object ...
-1
votes
1answer
62 views

How to implement different workflows for a single api call in microservice architecture

I am working on building a generic api that should ideally work with any data (Bring Your Own Data) but the overall functionality remains quite similar at the top level. For example lets say we are ...
0
votes
3answers
117 views

Many different user types in a microservice architecture

I'm trying to design a new microservice architecture that will eventually replace our current two monolithic APIs (we develop a desktop payroll software that uses our API to send payroll documents to ...
0
votes
0answers
31 views

How to implement micro-frontends with Native Apps?

I'm working with Web (react) and Mobile (IOS, Android) teams. And I find that even with a microservices architecture we end up always doing duplicated work at the front end/client level. How to ...
0
votes
0answers
23 views

Avoid tight coupling when configuring a service from a backend

I have multiple apps (app 1, ..., app n), that don't know each other but use the same services. At the same time, there is a single application to configure the services (let's call it backend). One ...
-3
votes
3answers
132 views

How does “event triggers event” really work in Event Sourcing / CQRS?

After reading/watching a lot about Event Sourcing, there is one thing I don't fully understand: Events that lead to triggering of other events. Let's take StackExchange's "close question" feature as ...

1
2 3 4 5
14