Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
28 views

Failure handling and response code mapping in a (HTTP/REST) service architecture in Java

TLDR: I am looking for established standards to deal with translating error codes from a downstream remote call to an error code handed out upstream at a service interface, that allows to easily know ...
0
votes
2answers
57 views

How to scale horizontally a microservice that holds a database

Imagine a 'User' microservice that holds all user's related logic, and this microservice holds a database. How could you scale this microservice horizontally and keep consistency ? In fact, if you ...
1
vote
3answers
48 views

Is it a good idea to share repositories across microservices in Spring Boot Application?

We are migrating a desktop application into web based Spring Boot micro services application with a client imposed mandate of using their existing MySQL database, so all micro services share a common ...
1
vote
0answers
56 views

What is better way of localization? [on hold]

Is it better to return translated content from the service itself or let the client(Android & iOS) handle the translation while service only returns translation keys for the content?
0
votes
0answers
33 views

What's the recommended way to deal with different authorization roles per microservice in an OAuth2 + JWT token scenario? Stateless vs stateful

Let's suppose an organization with a bunch of frontend applications (angular/react...). Each of them has an associated backend for frontend (BFF) microservice that provides a REST API: Front 1 ------...
2
votes
2answers
74 views

Aggregation of data from two Microservices

I have two Microservices A and B. B Microservice has a large set of an entity called User. Microservice A stores the User entity in its own DB if User is configured by an agent.There is no flag ...
1
vote
1answer
54 views

Communication in a microservices architecture with flask and REST

Components involved: Mobile Client Microservices API Gateway Each microservice is a Flask application exposing a RESTful API. When a request is made by the mobile client, it is sent to the API ...
0
votes
1answer
38 views

Max recommended downstream calls for micro service inter-communication

Broadly speaking how many downstream calls would be acceptable for a synchronous Microservice interaction, from say a gateway API down to a a few supporting services? We are seeing big swings in ...
0
votes
0answers
36 views

How to protect while loosely coupling a db server that is shared by 2 different services

Background information I have a database that will be used by two different web applications. Solution A (user driven web application) resides on the public internet and will write / update / delete ...
0
votes
2answers
65 views

How to Integrate Old UI in Microservice

We have about 10 applications in one Monolith that need to be refactored into Microservices. Following an Agile approach, we would like to split work into vertical slices where each slice would be ...
0
votes
0answers
29 views

When is an API Manager/Gateway product necessary? Would you use it for Backend For Frontend services?

I have been using different API Management solutions for quite some time now, as some clients encouraged or forced its use to manage APIs and microservices. However I feel in many cases there could ...
0
votes
0answers
20 views

Stream processing architecture

I am in the process of designing a system where there's a main stream of objects and there are multiple workers which produces some result from that object. Finally, there is some special/unique ...
5
votes
2answers
347 views

When to create more microservices rather than inner functions

I'm trying to architect (breakdown) one application we have at my work in a few microservices. Before starting going down to the rabbit hole, I wanted to ask: when is a good idea to create another ...
0
votes
0answers
21 views

Service Design - Data-orientation vs. Role/Goal-orientation

For a simple web application, I am designing web services to expose the application functionality (mostly data storage / retrieval, but also data processing). As the application is not too complex, I ...
2
votes
3answers
131 views

How to replace parallel async calls between micro services with event based communication

A service A needs to access services B, C and D to process a request. Currently this is implemented as parallel async calls from A to B, C and D. Once all of them has responded, service A follows some ...
0
votes
0answers
35 views

Dynamic data aggregation in a microservice architecture

I've recently started learning about microservice architecture. API gateway is a pattern usually proposed for aggregating data from different microservices which own their data stores. However I wasn'...
0
votes
1answer
121 views

Breaking a website into a bunch of micro services

Imagine we have a website happy-cooking-together.com. (I made it up so if becomes available all of a sudden don't take it for real.) It's getting quite a lot traffic and multiple teams are working on ...
0
votes
3answers
84 views

How to keep relationship integrity with Microservice Architecture

Currently when I build applications, I build them as one big monolithic application such that everything resides in a single compiled assembly and the data resides in one single SQL database (with ...
0
votes
0answers
21 views

Design for constantly “saving” user data in the event they navigate away from the page

We are in the process of converting a desktop application to a web application, and one of the challenges we are facing is the fact that when you make a change to the desktop application, it regularly ...
1
vote
1answer
21 views

working with multiple libraries and versions using nuget local feed

so I am in a position where I doubt my solution to the following problem: - we are developing a wpf desktop application with c# and have a decent plugin system. This increases the libraries we have ...
0
votes
0answers
44 views

Microservices and “Master Data Management” - are they compatibile?

My understanding is that separate data store per service is a best practice in microservices architecture. This Nginx article mentions that, but it goes on to advocate a Master Data Management system ...
0
votes
1answer
33 views

What to include in a (Batch) POST/PATCH results/errors for results for pragmatic REST API

This is really a question about "best" or "practical" practices, and would be interested if anyone else has had a similar need as myself, and how they handled it. I have a REST(ish) API that we have ...
0
votes
1answer
109 views

Where should a database API live?

Just read this article: https://microservices.io/patterns/data/database-per-service.html We are designing 2 microservices - both have tables in a shared db. What I'm wondering is if I build an API ...
1
vote
2answers
83 views

Security Issues with RESTful Authentication & Session Management

I'm trying to implement authentication and session management for a microservice. In order to do the process RESTfully, I understand that I'll need to use some kind of token-based authentication to ...
0
votes
2answers
82 views

Lookup code tables in DDD

I'm curious on the best way to handle lookup-type codes that can be shared across bounded contexts. For instance, state codes, or business-specific type codes that might be used in more than one ...
1
vote
2answers
93 views

Microservice container database

I am just looking into microservices and containerization for learning. I have not really implemented anything yet. In principal I get a lot of the layers of the pattern. One thing I am not ...
0
votes
1answer
83 views

Composition of microservices. Good or bad thing?

Hopefully this topic is not opinionated and I could maybe get meaningful answer please. Our problem is, imagine you have two microservices: Car and Driver. DTO of the driver could be let's say as ...
1
vote
1answer
51 views

Single Sign On Logout Strategy

I have been working on a project that integrates spring-cloud-based microservices and MVC applications with SSO. currently, I use spring-session for the session repository service. My current ...
0
votes
0answers
31 views

Moving from Laravel Monolith to Lumen Microservices

Suppose, I have a big monolith application. Now, I want to move my monolith application into microservices. In that case, where should those Jobs go? My jobs update the DB rows. So, when I move the ...
-1
votes
1answer
44 views

Whats the pros and cons of RPCs vs. HTTP in information exchange in microservice architectures?

What type of components could benefit from RPC over HTTP, vice-versa? Does there exist other information exchange mechanisms, what are their use? I've seen smart people use both, I'm sure for ...
1
vote
1answer
87 views

Design scalable solution with queue

Assuming the following scenario: A web application that receives inputs from the user and process the inputs through an algorithm which takes between 5 to 25 minutes (depending on the inputs) and ...
1
vote
1answer
120 views

Microservices - Use case for shared database

We are floating around with the idea of breaking our monolithic application into microservices. The problem we are facing is there are parts of the application the business is not willing to accept ...
4
votes
3answers
241 views

Context separation in microservices

I work in a small company and we are about to delve into the Microservices world. As expected, we are hitting a few bumps. As of now, we are working on a new software to manage heavy machinery, but ...
7
votes
4answers
463 views

If a microservice architecture needs a separate database per microservice then it's too costly & unmanageable. Why do we even need it?

I read about microservices and it seems illogical to me to create a separate DB per service just to achieve isolation. I can achieve the same using only web services and a single database. Why do we ...
0
votes
3answers
89 views

Does a change to a monolith require the whole application to be deployed?

In the book Building Microservices by Sam Newman, on chapter one in the section Ease of Deployment there's a sentence that has left me bothered: "A one-line change to a million-line-long monolithic ...
0
votes
2answers
244 views

DDD - Domain events vs application events

I'm considering two types of notifications: Domain events used internally within a bounded context Application events used to exchange notification messages between bounded contexts Each aggregate ...
0
votes
2answers
95 views

In which layer should a microservice should send a message to another microservice

In our monolith application, the piece of code that used to handle sending SMSes and emails was written in our business layer. Now the responsibility of sending emails and SMSes is handled by a ...
29
votes
1answer
3k views

When developing a system by myself, should I use microservices?

I'm beginning a new project at work, and will likely be nearly the sole developer on the project, though one or two other developers will need to integrate existing applications or simple scripts into ...
5
votes
2answers
171 views

How can we keep sight of business flows in event driven architectures?

I am planning to set up an event driven architecture using Spring Boot apps that publish and read messages from a Kafka broker. Let's suppose it were an e-commerce application with the usual events (...
0
votes
1answer
148 views

Message Bus v Mediator pattern v In Memory Bus

I am struggling to understand when to use each of these: 1) Message Bus: Used to send integration events between Microservices. For example, Microservice A could publish an integration event, which ...
0
votes
1answer
59 views

How an async response is usually getting back to the clent in typical reactive highload architecture?

A typical highload reactive architecture is: (Q means queue) And usually arrows are from client to DB at such sketches. My question is how the response is going back? The same queues and other stuff?...
0
votes
0answers
45 views

Microservices - useless server vs code sharing

We need to deploy on-demand parts of a static website (in addition to a core site) on lots of independents but not so performant hosts. We use docker to deploy our system efficiently and use nginx as ...
0
votes
2answers
113 views

Microservice authentication between services

Is there a way to ensure that serviceA is called only by serviceB(or a set of whitelisted services)? All the services are independent and do not go through a service gateway as they are completely ...
0
votes
0answers
30 views

Maintain a file that exist in multiple repository

We have gradle.properties that exist in 15 microservices repo. If we(devops) need to change a property, we need to go all through that microservices, commit changes and push. How to deal with this ...
0
votes
1answer
70 views

Schedule tasks involving multiple services in a microservices environment

I am trying to solve the following problem in a microservice architecture. I am very new to this architecture so let me know if I miss use some of the concepts. Here is the problem I need to solve: ...
1
vote
1answer
106 views

Logging architecture in microservices

We are going to develop an enterprise level application which will be run by a dozen microservices. Every microservice will be inside docker and all this will be orchestrated by Kubernetes. Obviously, ...
3
votes
2answers
269 views

Microservices communication: Avoiding single point of failure

As far as I know, there are two commonly used patterns when dealing with services communication in a microservices architecture: Direct-calling other services. For example: Service A handles some ...
5
votes
3answers
423 views

How to handle foreign key constraints when migrating from monolith to microservices?

My team is migrating from a monolithic ASP.NET application to .NET Core and Kubernetes. The code changes seem to be going as well as can be expected but where my team is encountering a lot of discord ...
0
votes
2answers
67 views

Proper way to manage database for distributed backend architecture

My application backend consists of a bunch of standalone tasks linked together by messaging queues. They all need to access the same SQL database in order to run and store their results. Right now, ...
0
votes
1answer
138 views

Implementing CQRS inside a Microservice

I am considering a CQRS refactoring process. It is more of a learning exercise in my spare time. The use case is similar to a price comparison website where a user enters their details for a ...