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.

7
votes
2answers
698 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 ...
2
votes
1answer
302 views

Mircroservices - Ordering of Integration Events

I'm currently learning about event driven architecture and have the following 2 microservices. Product Service - Responsible for managing products Ordering Service - Responsible for processing orders ...
2
votes
1answer
351 views

CQRS and microservices: passing information from one service to another

We're building two microservices that use CQRS and Event Sourcing: an Order Service and an Inventory Service. When an order is made, the inventory of that item must be decreased by the amount ordered. ...
1
vote
1answer
399 views

Do I need to secure communications between microservices in a cluster?

So, let's say I have a standard set up for application, that is: - split into micro services - and is running in a cluster (kubernetes or docker swarm, I guess specific implementation does not matter, ...
1
vote
1answer
66 views

Is there a place for connection string in SOA's desktop clients?

In the SOA architecture, with many services that implements data persistence as well as basic logic - is there even a place for connection strings in client Desktop applications? Or should everything ...
0
votes
0answers
1k views

Separation of authentication/authorization in microservice architecture

So I'm currently trying to design a microservice architecture for a side project. I chose the microservice architecture primarily because it's just my own side project, so I want to learn something ...
0
votes
0answers
164 views

How to pass images between microservices in an image processing pipeline?

I was wondering what would be the best way to push images forward from one step of an image processing pipeline to the next. For example, say I have 3 microservices: input image -> preprocessing -...
3
votes
2answers
182 views

Deal with enumeration in Microservices architecture

I recently faced a problem when I designed the microservices architecture of our new system. To give more context on that, let's suppose that we have two different services. A service is ...
5
votes
2answers
372 views

How to deal with file events with microservice that exposes a REST API

A bit of context. The company where I work is starting to transition to a modular architecture (something similar to microservices) for our main product, currently monolithic. The first step is to ...
-1
votes
1answer
296 views

How to split an onion-style DDD project without using microservices?

Background: I'm building a prototype scientific app with the "Exploration" and "Optimisation" parts. (Other parts might be needed later.) Each part uses functional reactive programming (FRP) and has ...
1
vote
0answers
57 views

Is this a good solution for Card holder applications?

Business case I am currently looking for a better architecture to replace the current implementation for my application. Currently, My application runs on a mainframe system with CICS used for ...
-1
votes
1answer
151 views

How to delegate the refresh token renewal in a SOA

So, we've got SOA on the backend (BE) and on the frontend (FE) we've got micro-frontends (the separate micro-frontends are loaded as components into the frontend app when needed, so internal process ...
2
votes
1answer
445 views

Designing authentication and authorisation micro service

Background: There are three different applications A, B and C and they all share same user details but I had to implement authentication in each of them which was duplication of effort. After some ...
2
votes
1answer
308 views

WCF ChannelFactory vs auto-generated Service References in enterprise?

I'm aware that there was a lot of discussion about that topic, but I'm still confused what's better for the enterpise SOA envoronment. Basically, it's a SOA system with a few of WCF web services and a ...
3
votes
0answers
308 views

Microservices and Modular based front end

I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular JS, Angular 2 and others. I wanted to know how we can organize our front end code ...
9
votes
5answers
632 views

Microservices: MonolithFirst?

I've been researching microservice architectures trying to get a high level overview of all the pros and cons, whens and whys, etc. A lot of the information I'm reading/watching is coming from ...
0
votes
0answers
208 views

Interoperability, logic between microservices

I have a question about interoperability and communication between microservices. Let's say we have two microservices. First microservice calculates travel times of some routes. Second microservices ...
0
votes
2answers
303 views

Microservices architecture boundaries

I would like to implement gambling website with the following possibilities: as a player I would like to get list of games As a player I would like to like games As a player I would like to see ...
-1
votes
1answer
532 views

How to avoid synchronous communication between microservices

Let's say we're talking about a webshop. Microservice 1: Manages products and their prices Microservice 2: Responsible for payment and checkout. If a user wants to pay for a product, the payment ...
0
votes
1answer
65 views

How to handle pull requests merges in a service oriented environment that touch several repositories?

So we have a microservices architecture. Quite often we release features that require changes in several repos simultaneously. What approaches are best for handling this? Ex. Pull Request 1 from ...
20
votes
3answers
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: ...
3
votes
2answers
570 views

Microservices with OOP and Functional Programming [closed]

After reading and using different concepts(right or wrong) questions related to modularity have appeared. I want to implement the microservice architecture in my projects the right way. As from ...
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 ...
0
votes
0answers
89 views

How do I not lose the “reactive” nature of my services, simply because one of the services isn't reactive?

I've lately been very interested in reactive microservice design with streaming and event-driven architectures. When one writes (i.e., manages) services, this paradigm works extremely well by simply ...
-3
votes
1answer
115 views

Microservices architecture for survey

Is a microservices architecture a good approach for developing a survey application with the following features: survey creation online or offline data collecting Reporting
1
vote
0answers
332 views

Create account flow in microservices architecture with different services for account and auth

I'm developing an application based on microservices architecture. Currently my goal is to implement 'Create user' flow. But I'm not sure quite sure what is the right way to do it. My problem is as ...
0
votes
0answers
63 views

How do you integrate microservices that are distributed across domains and platforms?

Modern webapps have multiple microservices that may be on multiple domains (e.g. subdomains) and providers (e.g. both AWS and Google Cloud; or Google Container Engine Google App Engine within the ...
0
votes
3answers
167 views

Root Cause Analysis in Microservices Environment

This question is a result of an internal debate involving R&D, DevOps and Automation departments of the company I work for. Here's the nutshell of the debate: automation: We need SSH access to ...
0
votes
0answers
1k views

Should I separate my authentication service and my user service?

I'm following a microservices architecture and using JWT for authorization and authentication. I have a User service that includes some details about users, and I was considering including ...
0
votes
0answers
71 views

Event Collaboration queries in micro services architecture

After reading through Martin Fowler's description of the Event Collaboration pattern (https://martinfowler.com/eaaDev/EventCollaboration.html) it appears that following the pattern entails doing away ...
3
votes
2answers
358 views

CQRS async query from command handler

In a CQRS/async microservices context, I have a command handler e.g. SendOrderConfirmationEmailCommandHandler implemented in a communications service. This depends on information from the orders ...
1
vote
2answers
491 views

Architecture for Queuing based technology in a Micro-Service, Multi-Tenant Environment

Hopefully the title is not painfully obscure, but as it indicates, I'm really looking for advice on my architecture proposal, as the current architecture is subject to concurrency issues, performance ...
1
vote
1answer
173 views

In microservices architecture, is it reasonable that service which emits event also listens to it?

We have a complex app which built by using multiple microservices. At a runtime, one of the microservices emits an event to initialize some maintenance process in another microservices, it's ok. But ...
0
votes
0answers
162 views

Reusing existing canonical data model for REST services

I work in an enterprise where is slow transition from SOAP & SOA to Microservices&Rest like architecture. For specific business domains there are well established canonical data models which ...
1
vote
2answers
113 views

Comparing approaches of mapping data objects

Update: I added some diagrams to help understanding I had a discussion with a colleague about two different approaches in mapping data objects. I'd like to get your opinion on pros and cons between ...
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 ...
0
votes
1answer
194 views

Architecture / Structure / Design of 1 Microservice

To start off I'm familiar with what microservices are, how they communicate with each other, the general flow etc. Now, I'm used on working with standard 3 Layer application for my backends( API - BL ...
-1
votes
1answer
211 views

Calculation Microservice

i'm new to the whole Microservice architecture so pardon my unstructured questions: Context: The business needs customers to be able to select commodities, calculate the cost of these commodities ...
11
votes
3answers
4k views

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....
6
votes
5answers
316 views

Message validation in async messaging-based services

I'm looking for information on the best approach to message validation in asynchronous-messaging-based services (i.e. services that pull messages from some sort of message queue or broker, rather than ...
2
votes
3answers
555 views

Who owns the Orders in a consumer-provider marketplace like platform?

We are developing an application where providers can offer their products and consumers can buy them (sort of marketplace). We try to apply DDD concepts into our model design and the implementation ...
4
votes
1answer
256 views

Routing all SQL queries through a single micro-service

I currently have a website, made of about 20 micro-services and a (still too large) main monolithic web application. The monolith and multiple micro-services each run queries to the same database, ...
0
votes
2answers
79 views

From a mobile application client to API/microservices

Let's say I have a mobile client for answering questions and then purchasing a widget. For example, I might have 10 screens from my UI with about 8 questions per screen. Imagine there is a screen ...
3
votes
1answer
631 views

Managing Database Access for MicroServices

We currently have a work stream where we are splitting out a Monolith into microservices and there has been a debate as to how we will access and persist data. To give you a good idea of how most of ...
2
votes
0answers
46 views

I need a web frontend for managing some data. Should I add it to an existing microservice or create a new one?

I work in a company that uses microservices. We have one particular service (let's call it Cart Service for example purposes) that manages some logic (storing carts, allowing other services to add and ...
4
votes
4answers
438 views

Scoping of Correlation IDs in microservices

We have a microservice that reads in large data files, each row containing information about Accounts. For each record found, it will then go off and do other "stuff" and that stuff is distributed ...
0
votes
1answer
152 views

Microservice depending on another, gracefully handling failure of one of them [duplicate]

We're starting to work on microservices to rebuild our legacy application, piece by piece. We started by building a register module which is responsible for the whole register process. To simplify, ...
0
votes
1answer
75 views

Microservices - External access tokens stored in identity service, calendar service, or both?

I'm creating an application which, so far, has an identity service(using identityserver4), a front end, and a calendar service. The user logs in via third party(say, google) and grants permissions to ...
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 ...
1
vote
1answer
70 views

Is a outlook type calendar/scheduling service a microservice?

Our company is in the early stages of starting to use microservices. One question that came up the other day was 'is scheduling/calendar a micro service'? We have so many monolithic apps that have ...