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.

996 questions
106
votes
5 answers

How does shifting to microservices create a run-time problem?

The following commentator writes: Microservices shift your organizational dysfunction from a compile time problem to a run time problem. This commentator expands on the issue saying: Feature not bug. Run time problem => prod issues => stronger,…
hawkeye
  • 4,819
  • 3
  • 24
  • 35
100
votes
7 answers

What is the most accepted transaction strategy for microservices

One of the major issues that I have seen occur in a system with microservices is the way transactions work when they span over different services. Within our own architecture, we have been using distributed transactions to resolve this, but they…
Kristof
  • 2,201
  • 3
  • 14
  • 13
94
votes
7 answers

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 monolith architecture. For the sake of…
James Mishra
  • 1,499
  • 1
  • 12
  • 16
93
votes
6 answers

Shared domain model between different microservices

Imagine a scenario of two different microservices. One to handle Authentication within the service, the other one takes care of User Management. They both have a concept of a User, and will talk about Users through calls to each other. Where would…
Kristof
  • 2,201
  • 3
  • 14
  • 13
76
votes
6 answers

Why is it so bad to read data from a database "owned" by a different microservice

I have recently read this excellent article on the microservice architecture: http://www.infoq.com/articles/microservices-intro It states that when you load a web page on Amazon, then 100+ microservices cooperate to serve that page. That article…
David
  • 4,449
  • 6
  • 35
  • 48
69
votes
6 answers

In microservice, is it single database or single database instance for each service?

I understand that a each service in a microservice architecture should have its own database. However, by having its own database, does it actually mean simply having another database within the same database instance or literally having another…
xenon
  • 887
  • 1
  • 6
  • 9
54
votes
3 answers

Should Microservices talk to each other?

I'm designing an application using Micro-Services and I'm unsure on the best mechanism to use to collect data from multiple services. I believe there are two options: Integrate an 'inter-service' communication mechanism that allows the services to…
KidCode
  • 2,123
  • 4
  • 17
  • 13
53
votes
4 answers

Ways to share DTO across microservices?

My scenario is as follows. I am designing a system designed to receive data from various types of sensors, and convert and then persist it to be used by various front-end and analytics services later. I'm trying to design every service to be as…
50
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
  • 611
  • 1
  • 5
  • 7
47
votes
2 answers

How do you handle shared concepts in a microservice architecture?

I am researching architectural patterns for an application I'm developing and a microservice approach seems like it would be a good choice but I am not sure how to handle interactions between the services. The application primarily deals with users,…
45
votes
4 answers

What is the proper way to synchronize data across microservices?

I am relatively new to microservice architecture. We have a moderately sized web application and I am weighing the pros and cons of breaking it out into microservices instead of a monolithic system we have now moving forward. As far as I understand…
noblerare
  • 1,301
  • 2
  • 10
  • 12
36
votes
5 answers

Microservices and stored procedures

Are stored procedures considered bad practice in a microservice architecture? Here are my thoughts: most books on microservices recommend one database per microservice. Stored procedures typically work on a monolithic database. again most…
Johnny Alpha
  • 510
  • 1
  • 4
  • 7
33
votes
2 answers

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 an XML file and then sends it to another system…
Nakrule
  • 457
  • 4
  • 6
32
votes
4 answers

Microservices and data storage

I'm considering moving a monolithic REST API to a microservice architecture, and I'm getting a bit confused about data storage. As I see it, some of the benefits of microservices would be: Horizontally scalable - I can run multiple redundant copies…
penalosa
  • 429
  • 1
  • 4
  • 5
31
votes
1 answer

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 the main project. The project needs to handle…
scnerd
  • 421
  • 4
  • 5
1
2 3
66 67