Stack Exchange Network

Stack Exchange network consists of 175 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.

72
votes
7answers
48k views

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 ...
60
votes
5answers
18k views

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+ ...
7
votes
2answers
810 views

Zero argument constructors and Always Valid entities

I have done a lot of reading recently about Always Valid domain entities. I have come to believe that in order to ensure the entities are always valid I need to: 1) Remove primitive obsession and ...
32
votes
2answers
8k views

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 ...
104
votes
5answers
10k views

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 ...
14
votes
5answers
5k views

Authorization and authentication system for microservices and consumers

We plan to refactor our company system into a micro-service based system. This micro-services will be used by our own internal company applications and by 3rd party partners if needed. One for booking,...
13
votes
4answers
13k views

Microservices REST or AMQP, which case

I've read many articles concerning microservices architecture and I was wondering when to use AMQP or REST. I've read that loose coupling between services is a good thing and AMQP seems to be a good ...
7
votes
2answers
558 views

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 ...
0
votes
3answers
238 views

Microservices level of detail

I told my boss that for our next application, we will be creating rest services that follows the microservices architecture. The design I had was somewhat like this: all functions related to users - ...
9
votes
3answers
1k views

Microservices and shared libraries

We are designing a system based on independent microservices (connected via a RabbitMq bus). The code will (for the first components at least) be written in python (both python2 and python3). We have ...
8
votes
2answers
1k views

Microservices & Canonical model

When I was reading about microservices on this site, I came across the below statement. What is meant by a canonical schema? Isn't it same as domain model? The Microservices Architecture pattern ...
62
votes
7answers
25k 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 ...
48
votes
4answers
19k views

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 ...
23
votes
4answers
3k views

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: ...
22
votes
3answers
6k views

Decentralized Data Management - encapsulating databases into microservices [closed]

I've recently been taking a course on Software design and there was a recent discussion/recommendation about using a 'microservices' model where components of a service are separated into microservice ...
11
votes
1answer
3k views

Why is it such a bad idea to share an interface between server and client?

I was reading the Spring Cloud Netflix documentation when I found out about a way to share an interface between an HTTP server and its client. They use this example for microservices, although there's ...
21
votes
4answers
16k views

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' ...
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 ...
6
votes
1answer
2k views

Microservice Architecture - using Auth Server as a User Resource server

I'm designing an application based on microservices architecture, In this application I will need Auth microservice, Also I will need to store some extra User information such as, perhaps, multiple ...
6
votes
2answers
2k views

Handling error messages from others services in Micro Service Architecture

Our company runs applications on a Micro Service architecture that includes thousands of services. I am working on a backend application "X" that talks to 50+ services. Frontend services call my ...
3
votes
1answer
3k views

How to query data from multiple microservices

I have micro service architecture application. One of the services contains all user related information. Another service contains a set of business objects. The Angular UI calls rest APIs of user-...
1
vote
1answer
670 views

Shared database vs tightly coupled message model

We have an ASP.NET MVC application sitting on top of a MySQL database. Now we're thinking about creating a public REST API so that third parties may integrate their services with ours. Now, I would ...
4
votes
1answer
1k views

Which approach should I use to split a monolithic application into several microservices?

We have a huge project that desperately needs to be broken apart into multiple databases and applications. I can think of 2 possible approaches to this problem: Use a REST endpoint on each service to ...
1
vote
2answers
2k views

How to manage dependencies for microservices?

We are in the process of slowly splitting out a monolithic application to smaller services and one of the debates we are having is how to manage dependencies. The challenge we have is that service A ...
0
votes
1answer
130 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 ...