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.
Questions tagged [microservices]
1020 questions
51
votes
5 answers
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 facing. Assuming someone is using a web application…

Geraint Anderson
- 621
- 1
- 5
- 7
22
votes
4 answers
Scaling monoliths vs. scaling microservices
One of the common arguments for using microservices is better scalability. But I wonder whether this argument is really valid.
Lets say we had an application consisting of 10 microservice with 9 of them having each two instances (for redundancy)…

deamon
- 876
17
votes
4 answers
Many-to-many associations in microservices
I currently have two microservices. We'll call them A and B.
The database under microservice A has the following table:
A
|-- users
The database under microservice B has the following table:
B
|-- trackers
The requirements state that users and…

anthonator
- 482
14
votes
2 answers
Is a "User" microservice a good idea?
I'm new to microservices, and from my understanding, DDD says for microservices to be built around business domains. This means good microservices would be like AppointmentScheduler and SendNotification in the context of a meeting booking system.
In…

Umair
- 185
14
votes
3 answers
Multi-tenant microservice design
We're in the process of migrating a monolithic application to microservice architecture. Due to some regulatory requirements, we have to keep client's data from different countries in separate (country specific) databases. I.e US db for US…

CHRISTIANJ
- 321
11
votes
1 answer
Do Microservices behind an API Gateway need to verify the Access Token?
I have a bunch of microservices that are only accessible externally via an API Gateway.
My API Gateway is set up as an OAuth Resource and validates the token (Checks signature etc.) before passing the request downstream to one or more…

fml
- 517
9
votes
4 answers
Microservice JOIN query
I know this question came up by a lot of people here and around the Internet but I couldn't manage to find a really clear explanation how to do queries spanning multiple microservices.
Imagine that I have 2 services, one is managing user relations,…

Peter
- 226
8
votes
2 answers
How to decide whether to adopt a micro services approach
TL;DR - What criteria should you use to decide whether to 'do micro services'?
I lead a team of developers and one of them insists that we adopt a micro services approach to architecture. I was hesitant at first, because I had been coding under a…

emurano
- 199
- 4
7
votes
1 answer
Should my service be separated into multiple microservices?
I was wondering - too many microservices usually cause testing and devops overheads + it makes the system more complex.
My service is something that handles a large load (from a data stream). It needs some database data from time to time.
There will…

ArielB
- 191
7
votes
4 answers
Common data in microservice architecture
We are trying to develop a microservices based application. The idea is to come up with a good pattern and would ideally like to develop it so that each service is loosely coupled with its own database. But how would we handle data that is common…

stonemusic
- 196
6
votes
3 answers
How to know if an entity is referenced in other micro services?
We have started using a "micro service" architecture and we have multiple services. Each service owns the data and the business logic for a domain and only entity ids are shared across services.
Everything was perfect until 1 requirement came…

Marc
- 545
6
votes
2 answers
Data Security Between Users in a Microservice Architecture
Our team has decided to move to a microservice approach for newly developed features. We've decided to keep a database/datastore per service and to split the services along the business function they perform. As we move this direction we're creating…

Mike G
- 239
6
votes
1 answer
Is the use of a message broker aligned with Sam Newman's Building Microservices?
In one of the projects the CTO has chosen to use a message broker in order to connect microservices. Is the use of such software aligned with the microservices theory?
Attempt to answer the question
In Sam Newman's Building Microservices chapter…

030
- 518
5
votes
2 answers
Microservices shared data
I'm designing a microservices structure, and I'm facing some problems on how to place data on different microservices.
For example, I have users that subscribe to plans and the plans have different features. For example, a user can download 10 items…

Fausto Sanchez
- 177
5
votes
2 answers
Which architecture should i choose for Microservices which are both async and sync?
I have a microservice(Microservice A) which connects to a Client MQ and recieves messages and persists into the database.(Synchronous type MessageA after Message B for the same order).
Internally i have n microservices each handling a particular…

Akhil
- 81