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.

2
votes
1answer
2k views

Messages' translations in microservice architecture

I work with monolith web application written in PHP that is being migrated step-by-step into microservices. I would like to keep the same UI with several new features that have been implemented during ...
0
votes
1answer
307 views

Appropriate HTTP status code when authorization server is unavailable

We have authorization server which is in charge of checking token validity, expiration etc. Which HTTP status code should be returned if the authorization server is down? Should it be 401 with "...
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,...
1
vote
4answers
162 views

Microservices design:operation centric or object centric design ?

We are about designing microservices application around REST API. The application is aimed to search, Create, Update and retrieve document from many heterogeneous repositories. I'm wondering if I ...
3
votes
2answers
2k views

Microservices and authorization

We are currently working on a micro-service based system. The idea behind it is to split our monolithic system to small domains (micro-service per domain). All services will be used by our internal ...
1
vote
2answers
607 views

How to design authorization between docker microservices?

I have 2 micro-services. One is a Django API, the other is a worker. Each one of these lives in side a docker container. The API is a public API for the web front end. It handles CRUD operations for ...
2
votes
2answers
2k views

data aggregation pattern for microservices: daily feed

Let's say you have the following application: users can be part of different organizations. Different users can create tasks and projects within an organization. In a microservice architecture, there ...
2
votes
1answer
1k views

Populate User info between services on microservices architecture

I'm working on a microservices architecture which contains a couple a REST API as a services and a SPA as an interface. In addition, there are an "special" (is not speacial at all, it just special ...
6
votes
2answers
1k views

Right way to spread secret keys between microservices

I have a few services that sign some data with an asymmetric cryptography algorithm (like RSA). I need to spread some secret (private) keys between all instances of the service. I've found a few ways ...
6
votes
2answers
313 views

Handling cases where the message queue is unreachable

We are using Apache Camel with ActiveMQ in a microservice architecture in a growing system of integration solutions. I was wondering how each service should react when they are unable to connect to ...
6
votes
1answer
355 views

Best practice for ensuring name uniqueness/correctness in message queues in a microservice architecture/distributed system

I was wondering what a good solution would be for ensuring that queue-names are entered correctly and are only used by the correct applications in a large system which uses message queues to exchange ...
9
votes
2answers
5k views

Microservice architecture shared domain models

Lets assume that we have a Spring Boot application that uses microservices architecture. Each of the services has its own domain models, but each service must reference a User domain object. What ...
-1
votes
2answers
804 views

External User ID to Internal User ID

There is an internal API, REST client over DB, all of which methods require User ID as parameter. User ID is an integer value - numeric PK in User table. Also there is an public API, that is like a ...
2
votes
1answer
778 views

Should I consider microservice as an epic or a project in TFS?

When using tools such as TFS or JIRA to plan an application made of 10+ microservices, I am concerned should I consider microservice as an epic or as an new project? In TFS when splitting ...
2
votes
2answers
95 views

AMQP broker and happen-before guarantees

I am trying to figure out how an AMQP broker, such as RabbitMQ, can be integrated in our architecture. This should allow to easily scale horizontally in the future. For the sake of simplicity, let me ...
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 ...
8
votes
2answers
5k views

What are the important considerations when switching from monolithic to microservices architecture in .NET? [closed]

We are contemplating breaking up our monolithic monsters into microservices based architecture progressively. We have 5 teams, each team containing 2-3 C# developers, at least 1 database developer, ...
1
vote
1answer
870 views

User-related logging in the microservices architecture

What is the best practice for logging user-related data in microservices architecture? In example: I would like to audit/persist to database information on who deleted a resource. I have user info on ...
3
votes
1answer
1k views

Cross-cutting concerns and library sharing in Microservice architecture

I've been thinking about practicing with a simple Microservice (oxymoron I guess) application and I found an issue I was not able to resolve. I'll go with a concrete example since the definition of ...
4
votes
2answers
3k views

Micro-service database management?

Most people say when building micro-services, that it's best to have separate databases for each of the microservices. E.g: User-microservice: DB - User userId name Etc... Review-microservice: ...
7
votes
1answer
2k views

One Large API to several microservices vs lots of small APIs each with their own API

I have an application that is beiong split out into a number of services. From a previous question on here, I think that initially JSON/REST is the way to go for communication. Some of my micro ...
7
votes
1answer
2k views

Chosing between microservice communication methods

I have a large customer facing web applicaton (.net mvc if that matters) that I need to split down to a number of services. Some of these services will then be shared with other applications. At the ...
2
votes
2answers
314 views

Revisiting Fowler's “Public versus Published Interfaces” article with regard to versioning and microservices

In this short article Public versus Published Interfaces from 2002, Martin Fowler distinguishes between easily changeable "public interfaces" and harder to change "published interfaces": The key ...
5
votes
2answers
535 views

Should Erlang systems be monolithic?

Should Erlang systems (or anything running on the BEAM VM) be monolithic, i.e. everything running in the same distributed application, or should they be split into multiple microservices like any ...
13
votes
3answers
3k views

API Gateway (REST) + Event-Driven Microservices

I have a bunch of microservices whose functionality I expose through a REST API according to the API Gateway pattern. As these microservices are Spring Boot applications, I am using Spring AMQP to ...
2
votes
0answers
124 views

How do I take data offline for a specific tenant, if their data is spread across multiple databases and multiple microservices?

I'm working on an application with about 50 or so microservices that have separate multi-tenanted databases. The problem arose of taking a tenant's data offline meaning that any requests for a certain ...
4
votes
1answer
324 views

Idiomatic internal architecture of Go microservices

For learning purposes, i'm trying to implement a small project using (buzzword warning!) microservices. There are plenty of resources online talking about the 'macro' microservice world -integration, ...
2
votes
2answers
697 views

In an event driven microservice environment, are domain events equal to topics?

A lot of messaging frameworks have the term "topic". In a ddd microservice architecture, do these topics always reflect the domain events?
1
vote
0answers
167 views

Choosing Between Ruby and Python for a FS Microservice Backend in Node App [closed]

I have been working on a application that up until now has been pure Node. However I am concerned about performance and overhead since the application performs a lot of file system operations (Copy ...
0
votes
1answer
77 views

Sdk building, declare dependencies inside the assembly or use external?

At my company, we're building an SDK consisting of a number of assemblies. For example, we deliver an assembly called Company.Platform.Security that contains the implementation of our authorization ...
5
votes
3answers
7k views

Microservices with the same database

I have a monolith application on a server and I want to break it into multiple microservices. Because of that for the moment I have to use the same database for all the microservices and each ...
2
votes
0answers
554 views

How to design microservices without leader election but job scheduling?

There is a microservices system that is currently using Zookeeper. Let's assume there is just one type of service A that exhibits a simple read of some value t. However, the one of existing A ...
0
votes
1answer
63 views

Understanding client service discovery mechanism

I'm trying to understand how to implement service discovery pattern in my architechture. I understand that each instance of one service must register itself in the service registry when starts and ...
2
votes
1answer
1k views

Cross compiling Linux containers for embedded devices

I have recently been exposed to Docker and found it to be an excellent tool for making production deployments very less risky that what I was used to (coming from an embedded world, embedded as "Linux ...
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 ...
5
votes
2answers
7k views

Communication between microservices - distinguishing internal calls safely

I am rearchitecturing and rewriting my monolithic BaaS solution into microservices regarding to scalability and single responsibility rules. Due to the internal dependencies, services are placed on ...
12
votes
3answers
5k views

What should be the scope of a health check for a system which deploys a webapp?

Today I had a task to "write a health check" for a long running service that is an orchestration system to deploy a web-app. I am trying to determine what the scope for such a health check would be, ...
2
votes
1answer
122 views

Can a API backed by a RDMS be refactored into Micro services?

Working on an API... Consider an example database like the following for some enterprise-facing application: +-------------------------------+ | tables | +---------------------...
4
votes
1answer
320 views

What's the purpose of having services in containers?

I've been very interested in Service Oriented Architecture, and Microservices. Many resources talk about having services in containers. To me, one of the big benefits of seperating an application ...
5
votes
2answers
849 views

Docker, microservices and git workflow

We are a young company that's developing a web app in node.js with the microservice architecture. Actual development workflow: Each microservice is stored in a private repository Different ...
7
votes
2answers
7k views

Event sourcing, replaying and versioning

I am designing a system that uses Event Sourcing, CQRS and microservices. I am lead to understand this isn't an uncommon pattern. A key feature of the service needs to be the ability to rehydrate/...
-1
votes
0answers
294 views

Hierarchies and Inter-process communication between microservices

I have an interesting problem. I have a micro-service which manages corporate hierarchy. A user in the hierarchy has permissions to nodes, which cascade down to children of those nodes. Now, the ...
3
votes
2answers
476 views

Configuring a microservice landscape, should the view be monolithic or be attached to core services?

I'm migrating my monolithic web application to a microservice based one. I'm going to use Spring cloud and I've got a discovery service where all the rest of the services are registered. A simplified ...
10
votes
3answers
2k views

Microservices and isolated data storage models [duplicate]

I have been looking at Microservices for a while now. The concept is not new but it's communicated in a lightweight manner. So, I am very excited about this. However, there is a question that I am ...
-7
votes
1answer
489 views

How to manage microservices? [closed]

We are trying to adopt the microservice approach to our newly developed application. However, we found that there are too many repos, branches, and releases need to be managed. Originally, we only ...
7
votes
4answers
3k views

Microservices architecture and bounded contexts

In the past few days I've been reading some things about microservices architecture. I didn't get the whole point yet, since I'm just starting with this, but there's one point which caught my ...
3
votes
0answers
119 views

Sharing identical events, with differing scopes, between client and server libraries, in a micro-service architecture

I have a shared user repository (id, name, e-mail, password, etc.) exposed as a REST service - and multiple independent websites accessing this REST service (from the back-end) as a means of sharing a ...
7
votes
2answers
13k views

Webservices vs Microservices [closed]

In our org , we have soap & rest based services that have focused set of responsibilities. For instance , there is customer service for managing customer info , account service for managing ...
4
votes
1answer
615 views

microservices: How to model related domain objects? [closed]

I have 2 domain objects: Project and Contract. A project can have many contracts so in the database it is modeled as a classic one-to-many relationship. Our question is this: How do you model the ...
2
votes
1answer
129 views

API and a shared API client

We are a startup kind of a project that fired pretty well and as all startups the main goal was to start ASAP. We made our project as a monolith application (PHP) that has 4 sub-applications, but will ...