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.

0
votes
3answers
124 views

How to integrate different “microservices” into a transaction?

We're building a new web-based industrial application and one of the questions that are hammering our heads for the last few days is about the integration between different "microservices" on this ...
0
votes
0answers
31 views

Advice on how to model my microservices

I need to tackle this problem : we have to model some services aimed to handle all our customer registration process : - this include registration of the personal data (name,surname,email whith a ...
0
votes
0answers
31 views

How to handle role based access in my microservice architecture

We are trying to move from a monolith application to a microservice architecture faced by a spa application. One of the reason, is that we want to expose some services of our business to partners and ...
-1
votes
0answers
40 views

Should I use a WebSocket or wait for the REST response? [on hold]

We are developing a microservice architecture project. Once a request is sent to the backend from the frontend through a REST API call, our backend proceeds to apply various machine learning ...
1
vote
1answer
137 views

Why read and write API are good or why not?

While designing a complex system some of my colleges came back with the idea of having two separates APIs, one that will perform the writes into de databases and another one that will only do the ...
1
vote
0answers
24 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 ...
0
votes
1answer
34 views

Should complete user story be implemented by one team in context of microservices archicture

I have implemented application using microservices architecture. I take a user story to implement. This involves front end/UI, and two microservices to implement the user story. So I have three ...
6
votes
3answers
255 views

Where should business logic sit in microservice architecture?

Still trying to wrap my head around microservice architecture since I'm used to a monolithic approach Suppose we try to build a extremely simplified Uber booking system. To simplify things we let's ...
2
votes
1answer
44 views

Where to store data for Microservices Architecture?

I currently build applications that are fairly monolithic. I have a one or many code bases that compile into one single binary/package and deployed on a cluster of docker containers. All of the data ...
0
votes
1answer
63 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'...
4
votes
3answers
3k views

Microservices without data duplication

I’m finding it hard to avoid data duplication or a shared database for even the simplest microservices design, which makes me think I’m missing something. Here’s a basic example of the problem I’m ...
1
vote
1answer
109 views

Which scenario is the best for service worker architecture?

We know about using service workers in modern web sites. Consider a scenario back-end as node.js and SQL Server. Data is loaded from central database to local customer web app (DB is about 700 MB) ...
1
vote
1answer
133 views

Service Bus or Event Stream for Event-Driven Architecture

I'm creating a set of Microservices following Event-Driven Architecture using Event-Carried State Transfer to move state from one service to another. Given the following services; Order service ...
3
votes
3answers
122 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. A Microservice stores the User entity in its own DB if User is configured by an agent. There is no flag ...
4
votes
3answers
2k views

Decoupling microservices with gRPC

I'm setting up a microservices architecture, and am confused about how gRPC can loosely-couple services (compared to a pub-sub message service like Kafka). Doesn't the request go directly to the ...
0
votes
1answer
53 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
1answer
46 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 ...
4
votes
4answers
272 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. Let us focus on a small bounded context: work order. This bounded context is ...
-1
votes
1answer
35 views

Querying in event driven microservices

I am trying to get my head around "event driven" microservices. I understood, there are several techniques and patterns, like event notification, event sourcing, CQRS, etc that can help us to achive ...
1
vote
2answers
485 views

Does an event-driven architecture require that each actor owns his data?

We had a discussion over this topic at the work not long ago. We have the following situation: A legacy database which is currently the base for the main operational application in our company. A ...
2
votes
2answers
199 views

Microservices data - eventual consistency - initial state?

Let's say you have two microservices (contrived example): Customers service Dashboard service In the customers service, you manage all aspects related to customers (address, preferences, whatever). ...
2
votes
2answers
287 views

How to split a monorepo accross multiple teams so that each has access to only a slice of the repo?

There are lots of advantages to a monorepo. We also read that large companies like Google and Facebook use this tech to keep all source code in a single repo. But how do you manage to limit access of ...
0
votes
1answer
29 views

Any patterns for extracting tooling from multiple repositories?

I'm working on a project where an increasing number of small mini apps all share nearly the same tooling - makefiles, dockerfiles, jenkinsfiles and webpack configs, along with a couple of scripts, are ...
0
votes
2answers
65 views

Multiple processes in single microservice

We have a microservices architecture very similar to the architecture described here Obviously, it's a simplified diagram of a real system. In our case, we have a requirement to perform background ...
2
votes
1answer
275 views

CQRS, microservices and delta replication

We have a micro-service that has a Domain Model and have an analytical service for the domain which has its own Query Model. The domain model and the query model are stored in separate persistencies. ...
0
votes
1answer
145 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 ...
1
vote
1answer
193 views

Azure Service Fabric - Designing a Calculation Engine

Suppose I have the following devices: Device A Device B Device C (...) Also, for each device, I have the following measurements: Measurement 1 Measurement 2 (...) Each measurement event includes a ...
2
votes
3answers
91 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 ...
2
votes
1answer
144 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 ...
0
votes
2answers
94 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
1answer
825 views

Managing/Designing actors and their state in Azure Service Fabric

After some consideration I ended up seeing that Service Fabric Actors is probably the best way to start. Now, I'm wondering if I'm approaching this the right way. The structure Below, is the ...
0
votes
1answer
143 views

Message Broker vs. iPaaS

Does anyone have suggestions/recommendations/guidance they can offer on when to use a message broker like RabbitMQ/Kafka vs. an iPaaS solution like Mulesoft/Jitterbit/Dell Boomi/Workato? Can they ...
1
vote
0answers
60 views

What is better way of localization? [closed]

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
3answers
120 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 ...
4
votes
2answers
497 views

Which is the best option to exchange large amount of data in a micro-service architecture?

Application I am working on requires text contents to be extracted from various proprietary document formats like Microsoft word documents (doc, ppt, xls ), pdf and etc. I am planning to implement a ...
7
votes
2answers
476 views

Microservice interaction and formatting

My company has been converting to a service oriented architecture, but we have an odd setup. We have a number of web apps. Each one of these web apps currently has their own RESTful microservice. ...
2
votes
1answer
76 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 ...
5
votes
2answers
357 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
2answers
67 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 ...
59
votes
7answers
24k views

How do microservice system architectures avoid network bottlenecks?

I've been reading a lot about microservice architectures for server applications, and have been wondering how the internal network usage is not a bottleneck or a significant disadvantage compared to a ...
2
votes
2answers
689 views

Verifying Access Token in Each Service of a Microservice Architecture

I'm working on a application which is implemented using microservice architecture. There is an authentication service (A) which uses jwt standard, and there are other services in the application like ...
2
votes
3answers
140 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
1answer
125 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 ...
1
vote
1answer
25 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
1answer
110 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 ...
0
votes
1answer
36 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 ...
1
vote
2answers
92 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 ...
9
votes
2answers
1k views

What is really different between SOA and Microservices

Disclaimer I hope I am not stepping on anyone's toes or offending either concepts' enthusiasts Background I have been looking for real differences between Service Oriented Architecture and ...
1
vote
1answer
100 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
2answers
95 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 ...